url-regex-safe
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "url-regex-safe", | ||
"description": "Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "browser": { |
@@ -69,3 +69,3 @@ # url-regex-safe | ||
console.log(urlRegexSafe().test('github.com')); | ||
console.log(urlRegexSafe({ exact: true }).test('github.com')); | ||
``` | ||
@@ -92,3 +92,3 @@ | ||
console.log(urlRegexSafe().test('github.com')); | ||
console.log(urlRegexSafe({ exact: true }).test('github.com')); | ||
})(); | ||
@@ -116,3 +116,3 @@ </script> | ||
| `tlds` | Array | [tlds](https://github.com/stephenmathieson/node-tlds#readme) | Match against a specific list of tlds, or the default list provided by [tlds](https://github.com/stephenmathieson/node-tlds#readme). | | | ||
| `returnString` | Boolean | `false` | Return the RegEx as a String instead of a `RegExp` (useful for custom logic, such as we did with [Spam Scanner][spam-scanner]). | | | ||
| `returnString` | Boolean | `false` | Return the RegExp as a String instead of a `RegExp` (useful for custom logic, such as we did with [Spam Scanner][spam-scanner]). | | | ||
@@ -119,0 +119,0 @@ |
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
66855