Skip to content

Commit 05edf52

Browse files
committed
update pre-release patterns
1 parent 37b7089 commit 05edf52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def parse_version(version_string):
354354
Examples: "2.5.0.dev20240708+cu121" -> [2, 5, -1], "2.5.0" -> [2, 5, 0]
355355
"""
356356
# Check for pre-release indicators
357-
is_prerelease = bool(re.search(r"(git|dev|a\d+|b\d+|rc\d+)", version_string))
357+
is_prerelease = bool(re.search(r"(git|dev)", version_string))
358358
match = re.match(r"(\d+)\.(\d+)\.(\d+)", version_string)
359359
if match:
360360
major, minor, patch = map(int, match.groups())

0 commit comments

Comments
 (0)