logicp hace 7 años
padre
commit
0a4daeef7e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      js/statusmessage.js

+ 1 - 1
js/statusmessage.js

@@ -44,7 +44,7 @@
       };
 
       function validateUrl(input) {
-        if (null != null) {
+        if (input !== null) {
           return input.match(new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?"));
         }
       }