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

Allow configurable regex normalization #271

Open
noqcks opened this issue Jan 9, 2024 · 0 comments
Open

Allow configurable regex normalization #271

noqcks opened this issue Jan 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@noqcks
Copy link
Collaborator

noqcks commented Jan 9, 2024

What would you like to be added:

Related to #269

Managing a list of regex's for all potential package version strings is likely to become really tedious.
Instead of hard coding all the regex's, perhaps expose this list in config.yaml as a way to append more patterns to the list in normalizeSemver().

match:
  packages:
    regex:
      - '^(\d+\.\d+\.\d+)p\d+'
      - '^(\d+\.\d+\.\d+)-\d+~\w+'
@noqcks noqcks added the enhancement New feature or request label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant