From 7d78f971925c8d11debbb13725f789efa9f0f8c8 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Thu, 15 Oct 2020 13:04:06 +0200 Subject: [PATCH] fix(hiero): fixing regex expression --- pype/plugins/hiero/publish/collect_review.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pype/plugins/hiero/publish/collect_review.py b/pype/plugins/hiero/publish/collect_review.py index 157b8d88f8..781afd782a 100644 --- a/pype/plugins/hiero/publish/collect_review.py +++ b/pype/plugins/hiero/publish/collect_review.py @@ -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]