Skip to content

Commit

Permalink
regexp for url fields now accepts https://t.me/username links
Browse files Browse the repository at this point in the history
  • Loading branch information
imposeren committed Jun 22, 2019
1 parent f190162 commit b27ae5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parsley/static/parsley/js/parsley.js
Expand Up @@ -971,7 +971,7 @@ var Validator = ( function ( ) {
assert = new Validator.Assert().Regexp('^\\w+$', 'i');
break;
case 'url':
assert = new Validator.Assert().Regexp('(https?:\\/\\/)?(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,24}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)', 'i');
assert = new Validator.Assert().Regexp('(https?:\\/\\/)?(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-z]{2,24}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)', 'i');
break;
default:
throw new Error('validator type `' + type + '` is not supported');
Expand Down

0 comments on commit b27ae5c

Please sign in to comment.