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 168b309 commit b7c3d28Copy full SHA for b7c3d28
docs/utils/index.js
@@ -9,7 +9,7 @@ export const parseVersion = version => {
9
10
// Parse a fully qualified version from a string (including alpha/beta/etc
11
export const parseFullVersion = version => {
12
- const matches = version.match(/([0-9]+\.[0-9]+\.[0-9]+(?:-[a-z]+-?[0-9]+))/)
+ const matches = version.match(/([0-9]+\.[0-9]+\.[0-9]+(?:-[a-z]+[.-]?[0-9]+))/)
13
const matchesCount = matches.length
14
return matchesCount > 0 ? matches[matchesCount - 1] : ''
15
}
0 commit comments