6 lines
159 B
JavaScript
6 lines
159 B
JavaScript
|
|
export const extractCommit = versionString => {
|
|
const regex = /-g(\w+)$/i
|
|
const matches = versionString.match(regex)
|
|
return matches ? matches[1] : ''
|
|
}
|