Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit85cc695

Browse files
fix(site): strip version build info from docs link URLs (#14601)
1 parent0787c42 commit85cc695

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-
consti=version?.indexOf("-")??-1;
12+
consti=version?.match(/[+-]/)?.index??-1;
1313
if(i>=0){
1414
version=version.slice(0,i);
1515
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp