Skip to content

Commit 98cf181

Browse files
authored
Fix Overly permissive regular expression range in conda_package_helper.py (#2327)
1 parent 53b1d14 commit 98cf181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/conda_package_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def semantic_cmp(version_string: str) -> tuple[int, ...]:
124124

125125
def my_split(string: str) -> list[list[str]]:
126126
def version_substrs(x: str) -> list[str]:
127-
return re.findall(r"([A-z]+|\d+)", x)
127+
return re.findall(r"([A-Za-z]+|\d+)", x)
128128

129129
return list(chain(map(version_substrs, string.split("."))))
130130

0 commit comments

Comments
 (0)