Fix "invalid version number" for untagged tesseract versions

Fixes #770
This commit is contained in:
James R. Barlow
2021-04-26 01:18:07 -07:00
parent 33e0b16174
commit 7b1e5b4f41
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@ class TesseractVersion(StrictVersion):
^(\d+) \. (\d+) (\. (\d+))? # groups: 1/major, 2/minor, 3/[skip], 4/patch
[-]? # optional hyphen separator
(?:(alpha|beta|rc|dev)[.\-\ ]?(\d+)?)? # 5/prerelease, 6/prerelease_num
(?:-(\d+)-g[0-9a-f]+)? # untagged git version
$
''',
re.VERBOSE | re.ASCII,