Skip to content

Conversation

jdalton
Copy link
Contributor

@jdalton jdalton commented May 8, 2025

Use PackageURL.fromString to properly parse npm targetName.

Noticed this when running locally and it picked up a new version of PackageURL that validates than name cannot contain special characters like @babel/core. This allows for parsing the namespace and name components

@jdalton jdalton requested a review from prabhu as a code owner May 8, 2025 02:22
@jdalton jdalton force-pushed the jdalton/fix-purl-thing branch from eae0d53 to 0725f78 Compare May 8, 2025 02:27
@jdalton jdalton force-pushed the jdalton/fix-purl-thing branch from 0725f78 to 4992bd0 Compare May 8, 2025 02:33
@jdalton
Copy link
Contributor Author

jdalton commented May 8, 2025

Found a few more places.

@jdalton jdalton force-pushed the jdalton/fix-purl-thing branch 7 times, most recently from 310b290 to 52837c5 Compare May 8, 2025 03:19
Signed-off-by: jdalton <john.david.dalton@gmail.com>
@jdalton jdalton force-pushed the jdalton/fix-purl-thing branch from 52837c5 to f363ce5 Compare May 8, 2025 03:22
@prabhu prabhu merged commit 16587f3 into CycloneDX:master May 8, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants