Merge branch '580' into 'develop'

Fix backend version string parsing

Closes #580

See merge request pleroma/pleroma-fe!868
This commit is contained in:
Shpuld Shpludson 2019-07-07 10:30:45 +00:00
commit c8794b2b84
2 changed files with 12 additions and 1 deletions

View file

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