Skip to content

Instantly share code, notes, and snippets.

@andevsoftware
Last active March 5, 2016 13:01
Show Gist options
  • Save andevsoftware/4cb32c99392de54e02e2 to your computer and use it in GitHub Desktop.
Save andevsoftware/4cb32c99392de54e02e2 to your computer and use it in GitHub Desktop.
TSValidate.Validators.Url
import Url = TSValidate.Validators.Url;
validator.add('url', new Url()
.message(':field must be a url')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment