mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-10 10:39:12 +00:00
update regex for commit hash
This commit is contained in:
parent
60b413d02c
commit
66842efd81
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue