There's a big problem with the URL validation method.
The functions used for Instance validations output either true or false, and are stored in a variable called test. This is so that later on we can use the specific callback function for the validation rule (eg if ( test ) { ... } else { ... }.
Now the URL method uses an async function, which CANNOT return a value of true or false in this way. Therefore, the validate_url function is returning undefined and all tests using this rule appear to pass.
Would love a hand with this one.
There's a big problem with the URL validation method.
The functions used for Instance validations output either
trueorfalse, and are stored in a variable calledtest. This is so that later on we can use the specific callback function for the validation rule (egif ( test ) { ... } else { ... }.Now the URL method uses an async function, which CANNOT return a value of
trueorfalsein this way. Therefore, the validate_url function is returning undefined and all tests using this rule appear to pass.Would love a hand with this one.