3vis-fe/src/services/version/version.service.js
2019-03-10 18:06:51 -07:00

7 lines
159 B
JavaScript

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