Last active
March 16, 2017 21:41
-
-
Save farinspace/381f6647a3c865a7d5b2e3ba51126f84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
field5.add(Validate.Custom, { | |
against: function(value) { | |
return !value.match(/(\S:\/\/\S|\D\.\D|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|\d\.\D)/); | |
}, | |
failureMessage: "Value must not contain any URL's" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment