update regex for commit hash
This commit is contained in:
parent
60b413d02c
commit
66842efd81
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
export const extractCommit = versionString => {
|
export const extractCommit = versionString => {
|
||||||
const regex = /-g(\w+)$/i
|
const regex = /-g(\w+)/i
|
||||||
const matches = versionString.match(regex)
|
const matches = versionString.match(regex)
|
||||||
return matches ? matches[1] : ''
|
return matches ? matches[1] : ''
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user