Socket
Socket
Sign inDemoInstall

is-url

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 1.0.0

2

component.json

@@ -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 @@

});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc