one-validation
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -5,3 +5,3 @@ { | ||
"description": "Regexp based validation collection for common internet validation tasks", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/One-com/one-validation.git" |
@@ -34,3 +34,3 @@ /*global module, window*/ | ||
validation.functions[name] = function (value) { | ||
return validation.regex[name].test(value); | ||
return validation[name].test(value); | ||
}; | ||
@@ -37,0 +37,0 @@ } |
@@ -1,1 +0,1 @@ | ||
(function(){"use strict";var a,b={functions:{}},c={tld:/(?:a[cdefgilmnoqrstuwxz]|aero|arpa|asia|b[abdefghijmnorstvwyz]|biz|c[acdfghiklmnoruvwxyz]|cat|com|coop|d[ejkmoz]|e[cegrstu]|edu|f[ijkmor]|g[abdefghilmnpqrstuwy]|gov|h[kmnrtu]|i[delmnoqrst]|info|int|j[emop]|jobs|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|mil|mobi|museum|n[acefgilopruz]|name|net|om|org|p[aefghklmnrstwy]|pro|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnoprtvwz]|tel|travel|u[agksyz]|v[aceginu]|w[fs]|xxx|xn--(?:0zwm56d|11b5bs3a9aj6g|3e0b707e|45brj9c|80akhbyknj4f|90a3ac|9t4b11yi5a|clchc0ea0b2g2a9gcd|deba0ad|fiqs8s|fiqz9s|fpcrj9c3d|fzc2c9e2c|g6w251d|gecrj9c|h2brj9c|hgbk6aj7f53bba|hlcj6aya9esc7a|j6w193g|jxalpdlp|kgbechtv|kprw13d|kpry57d|lgbbat1ad8j|mgbaam7a8h|mgbayh7gpa|mgbbh1a71e|mgbc0a9azcg|mgberp4a5d4ar|o3cw4h|ogbpf8fl|p1ai|pgbs0dh|s9brj9c|wgbh1c|wgbl6a|xkc2al3hye2a|xkc2dl3a5ee0h|yfro4i67o|ygbi2ammx|zckzah)|测试|परीक्षा|한국|ভারত|испытание|срб|테스트|சிங்கப்பூர்|טעסט|中国|中國|భారత్|ලංකා|測試|ભારત|भारत|آزمایشی|பரிட்சை|香港|δοκιμή|إختبار|台湾|台灣|الجزائر|امارات|الاردن|بھارت|المغرب|السعودية|ไทย|سورية|рф|تونس|ਭਾਰਤ|مصر|قطر|இலங்கை|இந்தியா|新加坡|فلسطين|テスト|y[et]|z[amw])/i,domainPart:/[a-z0-9](?:[\-a-z0-9]*[a-z0-9])?/i,port:/\d{1,5}/,localpart:/[a-z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-z0-9!#$%&'*+\/=?\^_`{|}~\-]+)*/i,user:/[^:@\/]+/i,password:/[^:@\/]+?/i,scheme:/(?:ftp|https?|tel|sms)/i,path:/(?:\/[^ ]*)*/i};c.domain=new RegExp(c.domainPart.source+"\\."+c.tld.source,"i"),c.subdomain=new RegExp("(?:"+c.domainPart.source+"\\.)*"+c.domain.source,"i"),c.email=new RegExp(c.localpart.source+"@"+c.subdomain.source,"i"),c.url=new RegExp(c.scheme.source+"://(?:"+c.user.source+"(?::"+c.password.source+")?@)?"+c.subdomain.source+"(?::"+c.port.source+")?(?:"+c.path.source+")?","i"),c.mailto=new RegExp("mailto:"+c.email.source,"i");for(a in c)c.hasOwnProperty(a)&&(b[a]=new RegExp("^"+c[a].source+"$","i"),b.functions[a]=function(c){return b.regex[a].test(c)});b.fragments=c,typeof window!="undefined"&&(window.one=window.one||{},window.one.validation=b),typeof module!="undefined"&&(module.exports=b)})(); | ||
(function(){"use strict";var a,b={functions:{}},c={tld:/(?:a[cdefgilmnoqrstuwxz]|aero|arpa|asia|b[abdefghijmnorstvwyz]|biz|c[acdfghiklmnoruvwxyz]|cat|com|coop|d[ejkmoz]|e[cegrstu]|edu|f[ijkmor]|g[abdefghilmnpqrstuwy]|gov|h[kmnrtu]|i[delmnoqrst]|info|int|j[emop]|jobs|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|mil|mobi|museum|n[acefgilopruz]|name|net|om|org|p[aefghklmnrstwy]|pro|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnoprtvwz]|tel|travel|u[agksyz]|v[aceginu]|w[fs]|xxx|xn--(?:0zwm56d|11b5bs3a9aj6g|3e0b707e|45brj9c|80akhbyknj4f|90a3ac|9t4b11yi5a|clchc0ea0b2g2a9gcd|deba0ad|fiqs8s|fiqz9s|fpcrj9c3d|fzc2c9e2c|g6w251d|gecrj9c|h2brj9c|hgbk6aj7f53bba|hlcj6aya9esc7a|j6w193g|jxalpdlp|kgbechtv|kprw13d|kpry57d|lgbbat1ad8j|mgbaam7a8h|mgbayh7gpa|mgbbh1a71e|mgbc0a9azcg|mgberp4a5d4ar|o3cw4h|ogbpf8fl|p1ai|pgbs0dh|s9brj9c|wgbh1c|wgbl6a|xkc2al3hye2a|xkc2dl3a5ee0h|yfro4i67o|ygbi2ammx|zckzah)|测试|परीक्षा|한국|ভারত|испытание|срб|테스트|சிங்கப்பூர்|טעסט|中国|中國|భారత్|ලංකා|測試|ભારત|भारत|آزمایشی|பரிட்சை|香港|δοκιμή|إختبار|台湾|台灣|الجزائر|امارات|الاردن|بھارت|المغرب|السعودية|ไทย|سورية|рф|تونس|ਭਾਰਤ|مصر|قطر|இலங்கை|இந்தியா|新加坡|فلسطين|テスト|y[et]|z[amw])/i,domainPart:/[a-z0-9](?:[\-a-z0-9]*[a-z0-9])?/i,port:/\d{1,5}/,localpart:/[a-z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-z0-9!#$%&'*+\/=?\^_`{|}~\-]+)*/i,user:/[^:@\/]+/i,password:/[^:@\/]+?/i,scheme:/(?:ftp|https?|tel|sms)/i,path:/(?:\/[^ ]*)*/i};c.domain=new RegExp(c.domainPart.source+"\\."+c.tld.source,"i"),c.subdomain=new RegExp("(?:"+c.domainPart.source+"\\.)*"+c.domain.source,"i"),c.email=new RegExp(c.localpart.source+"@"+c.subdomain.source,"i"),c.url=new RegExp(c.scheme.source+"://(?:"+c.user.source+"(?::"+c.password.source+")?@)?"+c.subdomain.source+"(?::"+c.port.source+")?(?:"+c.path.source+")?","i"),c.mailto=new RegExp("mailto:"+c.email.source,"i");for(a in c)c.hasOwnProperty(a)&&(b[a]=new RegExp("^"+c[a].source+"$","i"),b.functions[a]=function(c){return b[a].test(c)});b.fragments=c,typeof window!="undefined"&&(window.one=window.one||{},window.one.validation=b),typeof module!="undefined"&&(module.exports=b)})(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11332