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

7 lines
159 B
JavaScript
Raw Normal View History

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