Merge pull request #1151 from kumabotz/remove-unicode

Remove unicode from url regex pattern
This commit is contained in:
Nick Winter 2014-06-13 08:11:59 -07:00
commit 27f2b9acb1

View file

@ -8,7 +8,7 @@ combine = (base, ext) ->
return base unless ext? return base unless ext?
return _.extend(base, ext) return _.extend(base, ext)
urlPattern = '^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_=]*)?$' urlPattern = '^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_=]*)?$'
# Common schema properties # Common schema properties
me.object = (ext, props) -> combine {type: 'object', additionalProperties: false, properties: props or {}}, ext me.object = (ext, props) -> combine {type: 'object', additionalProperties: false, properties: props or {}}, ext