Escape the package name

This commit is contained in:
Justin Hutchings
2022-12-07 16:50:44 +00:00
parent ca7dbc975f
commit 0e28c47332
4 changed files with 14 additions and 2 deletions
Generated Vendored
+3
View File
@@ -24146,6 +24146,9 @@ function searchFiles() {
// Fixes issues with an escaped version string
function replaceVersionEscape(purl) {
// Some tools are failing to escape the namespace, so we will escape it to work around that
purl = purl.replace("/@", "/%40");
//If there's an "@" in the purl, then we don't need to do anything.
if (purl != null && purl != undefined && !purl?.includes("@")) {
let index = purl.lastIndexOf("%40");
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long