Skip to content

fix: Fix prefixDocumentId() to use correct prefix#272

Merged
kzantow merged 2 commits intospdx:mainfrom
KAWAHARA-souta:fix-prefixdocumentid
Nov 26, 2025
Merged

fix: Fix prefixDocumentId() to use correct prefix#272
kzantow merged 2 commits intospdx:mainfrom
KAWAHARA-souta:fix-prefixdocumentid

Conversation

@KAWAHARA-souta
Copy link
Copy Markdown
Contributor

prefixDocumentId() uses "spdxRefPrefix" in its prefix check.
But that was wrong. "documentRefPrefix" is the correct one.

And, Tests for DocumentID itself were not implemented. So, I've implemented it.

(This was my mistake in #269 , I'm very sorry... )

Signed-off-by: Souta Kawahara <souta.kawahara@almalinux.org>
Signed-off-by: Souta Kawahara <souta.kawahara@almalinux.org>
@kzantow kzantow merged commit 254d7a7 into spdx:main Nov 26, 2025
6 checks passed
@kzantow
Copy link
Copy Markdown
Collaborator

kzantow commented Nov 26, 2025

Thanks for the fix @KAWAHARA-souta! :)

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