pleroma-fe/src/services/version/version.service.js

6 lines
158 B
JavaScript
Raw Normal View History

2019-03-10 18:06:51 -07:00
export const extractCommit = versionString => {
2019-07-03 12:02:56 -04:00
const regex = /-g(\w+)/i
2019-03-10 18:06:51 -07:00
const matches = versionString.match(regex)
return matches ? matches[1] : ''
}