is-url-http
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -0,1 +1,8 @@ | ||
<a name="1.2.4"></a> | ||
## 1.2.4 (2019-10-18) | ||
* refactor: use encoded url ([77889a1](https://github.com/Kikobeats/is-url-http/commit/77889a1)) | ||
<a name="1.2.3"></a> | ||
@@ -2,0 +9,0 @@ ## 1.2.3 (2019-10-18) |
@@ -10,3 +10,4 @@ 'use strict' | ||
try { | ||
return new URL(url) && REGEX_HTTP_PROTOCOL.test(url) && urlRegex.test(url) | ||
const { href } = new URL(url) | ||
return REGEX_HTTP_PROTOCOL.test(href) && urlRegex.test(href) | ||
} catch (err) { | ||
@@ -13,0 +14,0 @@ return false |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/is-url-http", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
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
6804
12