Comparing version 1.1.5 to 1.2.0
@@ -22,2 +22,3 @@ /** | ||
var regexps = { | ||
domain: /\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/, | ||
url: /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i, | ||
@@ -24,0 +25,0 @@ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i, |
@@ -29,2 +29,19 @@ /** | ||
/** | ||
* Checks for a valid domain name. | ||
* | ||
* @function domain | ||
* @param {Mixed} val The value to check. | ||
* @return {Boolean} Whether the value is a valid domain name. | ||
* @see https://github.com/johnotander/domain-regex | ||
* @example | ||
* is.domain('example.com'); // true | ||
* is.domain('subdomain.example.com'); // true | ||
* is.domain('sub.domain.example.website'); // true | ||
* is.domain('not_a_domain'); // false | ||
* is.domain(1234); // false | ||
* is.domain(true); // false | ||
*/ | ||
/** | ||
* Checks for a valid URL. | ||
@@ -267,15 +284,2 @@ * | ||
/** | ||
* Checks for a valid IPv6 address. | ||
* | ||
* @function ipv6 | ||
* @param {Mixed} val The value to check. | ||
* @return {Boolean} Whether the value is an IPv6 address. | ||
* @example | ||
* is.ipv6('2001:db8::ff00:42:8329'); // true | ||
* is.ipv6('127.0.0.1'); // false | ||
* is.ipv6('2001::::42:8329'); // false | ||
* is.ipv6(true); // false | ||
*/ | ||
}; |
{ | ||
"name": "fi-is", | ||
"title": "Fi is", | ||
"version": "1.1.5", | ||
"version": "1.2.0", | ||
"main": "index.js", | ||
@@ -20,3 +20,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"browserify": "^13.0.0", | ||
"browserify": "^14.1.0", | ||
"chai": "^3.5.0", | ||
@@ -26,10 +26,10 @@ "del": "^2.2.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-uglify": "^1.5.3", | ||
"gulp-util": "^3.0.7", | ||
"gulp-uglify": "^2.1.0", | ||
"gulp-util": "^3.0.8", | ||
"jsdox": "^0.4.9", | ||
"karma": "^0.13.22", | ||
"karma": "^1.5.0", | ||
"karma-chai": "^0.1.0", | ||
"karma-firefox-launcher": "^0.1.7", | ||
"karma-mocha": "^0.2.2", | ||
"mocha": "^2.4.5", | ||
"karma-firefox-launcher": "^1.0.1", | ||
"karma-mocha": "^1.3.0", | ||
"mocha": "^3.2.0", | ||
"vinyl-buffer": "^1.0.0", | ||
@@ -36,0 +36,0 @@ "vinyl-source-stream": "^1.1.0" |
67033
1966