Skip to content

How to normalize the text for regex matching in src/main/java/org/spdx/utility/compare/TemplateRegexMatcher.java #235

Closed

Description

@sdheh

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

  1. goneall commented on Feb 26, 2025

    @goneall
    Member

    @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 findTemplateWithinText and add a public method String normalizeText(String text).

  2. added a commit that references this issue on Feb 26, 2025
    eee51ca
  3. goneall commented on Feb 26, 2025

    @goneall
    Member

    @sdheh - I created PR #300 - let me know if this is what you're looking for

  4. added a commit that references this issue on Feb 27, 2025
    2cd0d76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    matchingLicense matching and recognition

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions