is-url
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -5,3 +5,3 @@ { | ||
"description": "Check whether a string is a URL.", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"keywords": ["url", "regexp", "regex", "validate"], | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -0,1 +1,5 @@ | ||
1.0.0 - January 17, 2013 | ||
------------------------ | ||
* allow localhost to have a port | ||
0.1.0 - September 8, 2013 | ||
@@ -2,0 +6,0 @@ ------------------------- |
@@ -1,2 +0,1 @@ | ||
/** | ||
@@ -13,3 +12,3 @@ * Expose `isUrl`. | ||
var matcher = /^(ftp|https?):\/\/([^\s\.]+\.[^\s]{2,}|localhost)$/; | ||
var matcher = /^(ftp|https?):\/\/([^\s\.]+\.[^\s]{2,}|localhost[\:?\d]*)$/; | ||
@@ -26,2 +25,2 @@ | ||
return matcher.test(string); | ||
} | ||
} |
{ | ||
"name": "is-url", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "mocha": "*", |
@@ -61,2 +61,6 @@ describe('is-url', function () { | ||
}); | ||
it('http://localhost:4000', function () { | ||
isUrl('http://localhost:4000').should.be.true; | ||
}); | ||
}); | ||
@@ -86,2 +90,2 @@ | ||
}); | ||
}); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3609
92
2