Skip to content

Commit 55396f2

Browse files
committed
fix: change quantifier in regexp for last version match
1 parent af97cdf commit 55396f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/utils/versions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface VersionLink {
2929
}
3030

3131
const LAST_VERSION_IN_RANGE_REGEXP =
32-
/([~^<>=]+\s*\d+\.\d+\.\d+(?:-[0-9A-Z-]+(?:\.[0-9A-Z-]+)*)?(?:\+[0-9A-Z-]+(?:\.[0-9A-Z-]+)*)?)\s*$/i
32+
/([~^<>=]*\s*\d+\.\d+\.\d+(?:-[0-9A-Z-]+(?:\.[0-9A-Z-]+)*)?(?:\+[0-9A-Z-]+(?:\.[0-9A-Z-]+)*)?)\s*$/i
3333

3434
/**
3535
* Parse a semver version string into its components

0 commit comments

Comments
 (0)