@tramvai/safe-strings
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -9,3 +9,3 @@ /** Mainly inspired by https://github.com/braintree/sanitize-url/tree/main */ | ||
function isRelativeUrlWithoutProtocol(url) { | ||
return relativeFirstCharacters.includes(url[0]); | ||
return !url.startsWith('//') && relativeFirstCharacters.includes(url[0]); | ||
} | ||
@@ -12,0 +12,0 @@ function decodeControlCharacters(str) { |
@@ -13,3 +13,3 @@ 'use strict'; | ||
function isRelativeUrlWithoutProtocol(url) { | ||
return relativeFirstCharacters.includes(url[0]); | ||
return !url.startsWith('//') && relativeFirstCharacters.includes(url[0]); | ||
} | ||
@@ -16,0 +16,0 @@ function decodeControlCharacters(str) { |
{ | ||
"name": "@tramvai/safe-strings", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/utils.js", |
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
24961