Skip to content

Commit

Permalink
chore: update matcher w/ lazy (#1444)
Browse files Browse the repository at this point in the history
<!-- For Coveo Employees only. Fill this section.

CDX-764

-->

## Proposed changes

`coveo-v3.2.0-94146122-arm64.pkg` will not match properly:
the commitSHA (9416122) will be gobbled by the version matcher.
This solves that by making the prerelease part of the version matcher
'lazy' so that the semver take priority over.
  • Loading branch information
louis-bompart authored Feb 20, 2024
1 parent ba0bf8b commit 1d3223a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/oclifArtifactMatchers.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const binariesMatcher =
/^coveo[_-]{1}(?<version>v?\d+\.\d+\.\d+(-\d+)?)[_.-]{1}(?<commitSHA>\w+)[_-]?(\d+_)?(?<longExt>.*\.(exe|deb|pkg))$/;
/^coveo[_-]{1}(?<version>v?\d+\.\d+\.\d+(-\d+)*?)[_.-]{1}(?<commitSHA>\w+)[_-]?(\d+_)?(?<longExt>.*\.(exe|deb|pkg))$/;
export const manifestMatcher =
/^coveo-(?<version>v?\d+\.\d+\.\d+(-\d+)?)-(?<commitSHA>\w+)-(?<targetSignature>.*-buildmanifest)$/;
/^coveo-(?<version>v?\d+\.\d+\.\d+(-\d+)*?)-(?<commitSHA>\w+)-(?<targetSignature>.*-buildmanifest)$/;
export const tarballMatcher =
/^coveo-v?(?<version>\d+\.\d+\.\d+(-\d+)?)-(?<commitSHA>\w+)-(?<targetSignature>[\w-]+).tar\.[gx]z$/;
/^coveo-v?(?<version>\d+\.\d+\.\d+(-\d+)*?)-(?<commitSHA>\w+)-(?<targetSignature>[\w-]+).tar\.[gx]z$/;

0 comments on commit 1d3223a

Please sign in to comment.