Skip to content

Commit c2f775f

Browse files
committed
Use r flag
1 parent 09f7a5b commit c2f775f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/antlib/scripts/parse_version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def snapshot_logic(omero_version):
7171
See gh-67 for the discussion.
7272
"""
7373
m = re.match((
74-
"^"
74+
"r^"
7575
"(?P<BASE>.*?)"
7676
"(?P<STRIP>([-]DEV)?-\d+-[a-f0-9]+?(-dirty)?)"
7777
"(?P<ICE>-ice[0-9]+)?"
@@ -115,7 +115,7 @@ def incr_version(omero_version):
115115
omero_version = new_vers
116116
except:
117117
# But if that doesn't work, we brute force with regex
118-
m = re.match("^([^\d]*\d+[.]\d+[.])(\d+)-SNAPSHOT$", omero_version)
118+
m = re.match("r^([^\d]*\d+[.]\d+[.])(\d+)-SNAPSHOT$", omero_version)
119119
if m:
120120
next = int(m.group(2)) + 1
121121
omero_version = "%s%s-SNAPSHOT" % (m.group(1), next)

0 commit comments

Comments
 (0)