We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b37e6 commit f8b265dCopy full SHA for f8b265d
web/src/utils/general.ts
@@ -260,12 +260,12 @@ export function renderRevisionLink(versionRaw: string) {
260
matchedText = matchR[0];
261
}
262
263
- // Case 2: versions like 1.5.5-9.13999 → take last .number
+ // Case 2: versions like X.Y.Z-*.NNNNN (revision only if after a dash)
264
if (!revisionNumber) {
265
- const matchVersion = versionRaw.match(/(\d+)(?!.*\d)/);
266
- if (matchVersion) {
267
- revisionNumber = matchVersion[1];
268
- matchedText = matchVersion[0];
+ const matchDash = versionRaw.match(/-(?:\d+\.)+(\d+)$/);
+ if (matchDash) {
+ revisionNumber = matchDash[1];
+ matchedText = matchDash[1];
269
270
271
0 commit comments