is-url-superb
Advanced tools
Comparing version 4.0.0 to 5.0.0
@@ -8,2 +8,7 @@ 'use strict'; | ||
string = string.trim(); | ||
if (string.includes(' ')) { | ||
return false; | ||
} | ||
try { | ||
@@ -10,0 +15,0 @@ new URL(string); // eslint-disable-line no-new |
{ | ||
"name": "is-url-superb", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "Check if a string is a URL", | ||
@@ -33,5 +33,5 @@ "license": "MIT", | ||
"ava": "^2.4.0", | ||
"tsd": "^0.11.0", | ||
"xo": "^0.32.0" | ||
"tsd": "^0.13.1", | ||
"xo": "^0.35.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# is-url-superb [![Build Status](https://travis-ci.com/sindresorhus/is-url-superb.svg?branch=master)](https://travis-ci.com/github/sindresorhus/is-url-superb) | ||
# is-url-superb | ||
@@ -3,0 +3,0 @@ > Check if a string is a URL |
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
31
2627