Templates with <<var... tags in a string without spaces does not match correctly
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 71
- Forks
- 44
- Avg merge
- 12h 54m
- Merged PRs (30d)
- 7
Description
Since the license matching is tokanized and the var tags assume the regular expression is a token, it likely will not match a string in the middle of an expression.
It will also match when the template has an incorrect space (see LicenseListXML issue https://github.com/spdx/license-list-XML/issues/1146).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the license-matching tokenization path described in the issue and reproduce both template cases: a <<var... tag embedded without spaces and a template with an incorrect space. Done means matching handles tags in the middle of an expression correctly and rejects the incorrect-space case, with regression coverage for both behaviors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100