Skip to content

Commit 1d3223a

Browse files
chore: update matcher w/ lazy (#1444)
<!-- 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.
1 parent ba0bf8b commit 1d3223a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/oclifArtifactMatchers.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const binariesMatcher =
2-
/^coveo[_-]{1}(?<version>v?\d+\.\d+\.\d+(-\d+)?)[_.-]{1}(?<commitSHA>\w+)[_-]?(\d+_)?(?<longExt>.*\.(exe|deb|pkg))$/;
2+
/^coveo[_-]{1}(?<version>v?\d+\.\d+\.\d+(-\d+)*?)[_.-]{1}(?<commitSHA>\w+)[_-]?(\d+_)?(?<longExt>.*\.(exe|deb|pkg))$/;
33
export const manifestMatcher =
4-
/^coveo-(?<version>v?\d+\.\d+\.\d+(-\d+)?)-(?<commitSHA>\w+)-(?<targetSignature>.*-buildmanifest)$/;
4+
/^coveo-(?<version>v?\d+\.\d+\.\d+(-\d+)*?)-(?<commitSHA>\w+)-(?<targetSignature>.*-buildmanifest)$/;
55
export const tarballMatcher =
6-
/^coveo-v?(?<version>\d+\.\d+\.\d+(-\d+)?)-(?<commitSHA>\w+)-(?<targetSignature>[\w-]+).tar\.[gx]z$/;
6+
/^coveo-v?(?<version>\d+\.\d+\.\d+(-\d+)*?)-(?<commitSHA>\w+)-(?<targetSignature>[\w-]+).tar\.[gx]z$/;

0 commit comments

Comments
 (0)