You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to normalize the text for regex matching in src/main/java/org/spdx/utility/compare/TemplateRegexMatcher.java #235
I am trying to find the start of a potential license template match.
src/main/java/org/spdx/utility/compare/TemplateRegexMatcher.java provides a public getStartRegex method but there is no public method for normalizing the text before using this method. Could you please provide such a method?
Activity
goneall commentedon Feb 26, 2025
@sdheh - Finally getting back to non SPDX 3.0 changes to the library - are you still interested in such a method?
It looks like I can refactor
findTemplateWithinTextand add a public methodString normalizeText(String text).Refactor TemplateRegexMatcher to externalize text normalization method
goneall commentedon Feb 26, 2025
@sdheh - I created PR #300 - let me know if this is what you're looking for
Refactor TemplateRegexMatcher to externalize text normalization method