Skip to content

Commit cdbe566

Browse files
committed
added regex marking
1 parent 74925c7 commit cdbe566

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

manage_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from pathlib import Path
55

66
SEMVER_REGEX = re.compile(
7-
"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)"
8-
"(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?"
9-
"(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
7+
r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)"
8+
r"(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?"
9+
r"(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
1010
)
1111

1212

0 commit comments

Comments
 (0)