fix(hiero): fixing regex expression

This commit is contained in:
Jakub Jezek 2020-10-15 13:04:06 +02:00
parent dba1f34bd7
commit 7d78f97192
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -245,7 +245,7 @@ class CollectReview(api.InstancePlugin):
string: any matching sequence patern
int: padding of sequnce numbering
"""
foundall = re.findall(r"(#+)|(%\d+d)|[^a-zA-Z](\d+)\.\w+$", file)
foundall = re.findall(r"(#+)|(%\d+d)|(?<=[^a-zA-Z0-9])(\d+)(?=\.\w+$)", file)
if foundall:
found = sorted(list(set(foundall[0])))[-1]