xeol icon indicating copy to clipboard operation
xeol copied to clipboard

Allow configurable regex normalization

Open noqcks opened this issue 1 year ago • 0 comments

What would you like to be added:

Related to https://github.com/xeol-io/xeol/issues/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 avatar Jan 09 '24 14:01 noqcks