🌐 AI搜索 & 代理 主页
Skip to content

Commit b7c3d28

Browse files
authored
Update index.js
1 parent 168b309 commit b7c3d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const parseVersion = version => {
99

1010
// Parse a fully qualified version from a string (including alpha/beta/etc
1111
export const parseFullVersion = version => {
12-
const matches = version.match(/([0-9]+\.[0-9]+\.[0-9]+(?:-[a-z]+-?[0-9]+))/)
12+
const matches = version.match(/([0-9]+\.[0-9]+\.[0-9]+(?:-[a-z]+[.-]?[0-9]+))/)
1313
const matchesCount = matches.length
1414
return matchesCount > 0 ? matches[matchesCount - 1] : ''
1515
}

0 commit comments

Comments
 (0)