akkoma-fe/src/services/version/version.service.js
2019-07-05 11:11:31 -04:00

6 lines
158 B
JavaScript

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