Skip to content

Commit 85cc695

Browse files
fix(site): strip version build info from docs link URLs (#14601)
1 parent 0787c42 commit 85cc695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/utils/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function defaultDocsUrl(): string {
99
}
1010

1111
// Strip the postfix version info that's not part of the link.
12-
const i = version?.indexOf("-") ?? -1;
12+
const i = version?.match(/[+-]/)?.index ?? -1;
1313
if (i >= 0) {
1414
version = version.slice(0, i);
1515
}

0 commit comments

Comments
 (0)