Skip to content

Commit ebabd31

Browse files
authored
Merge pull request #1008 from danielhardej/danielhardej-patch-20251023
Fix PURL parsing to prevent mismatch for scoped packages
2 parents f620fd1 + 19f9360 commit ebabd31

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"zod": "^3.24.1"
4444
},
4545
"devDependencies": {
46-
"@types/jest": "^29.5.12",
46+
"@types/jest": "^29.5.14",
4747
"@types/node": "^20",
4848
"@types/spdx-expression-parse": "^3.0.4",
4949
"@typescript-eslint/eslint-plugin": "^6.21.0",

src/licenses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async function groupChanges(
174174
return true
175175
}
176176

177-
const changeAsPackageURL = parsePURL(encodeURI(change.package_url))
177+
const changeAsPackageURL = parsePURL(change.package_url)
178178

179179
// We want to find if the licenseExclusion list contains the PackageURL of the Change
180180
// If it does, we want to filter it out and therefore return false

0 commit comments

Comments
 (0)