Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LicenseExpressionParser: Allow "+" as part of license-refs #66

Closed
wants to merge 1 commit into from

Conversation

sschuberth
Copy link
Member

license-refs as defined in Appendix IV of the SPDX 2.0 specification
should be allowed to contain "+", e.g. to write "LicenseRef-LGPL-3.0+".
Currently, LicenseExpressionParser interprets "+" in license-refs as
Operator.OR_LATER even if they are no compound-expression. Fix this by
checking the compound-expression for a license-ref and do not take "+" as
a token in that case.

@sschuberth
Copy link
Member Author

@goneall My contributions are done under the terms of the Apache License, version 2.0.

license-refs as defined in Appendix IV of the SPDX 2.0 specification
should be allowed to contain "+", e.g. to write "LicenseRef-LGPL-3.0+".
Currently, LicenseExpressionParser interprets "+" in license-refs as
Operator.OR_LATER even if they are no compound-expression. Fix this by
checking the compound-expression for a license-ref and do not take "+" as
a token in that case.
@sschuberth
Copy link
Member Author

Closing this as it needs more work (like checking the SPDX version) but I currently have no time or strong interest to work on that.

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.

1 participant