mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Fix Overly permissive regular expression range in conda_package_helper.py (#2327)
This commit is contained in:
@@ -124,7 +124,7 @@ class CondaPackageHelper:
|
|||||||
|
|
||||||
def my_split(string: str) -> list[list[str]]:
|
def my_split(string: str) -> list[list[str]]:
|
||||||
def version_substrs(x: str) -> list[str]:
|
def version_substrs(x: str) -> list[str]:
|
||||||
return re.findall(r"([A-z]+|\d+)", x)
|
return re.findall(r"([A-Za-z]+|\d+)", x)
|
||||||
|
|
||||||
return list(chain(map(version_substrs, string.split("."))))
|
return list(chain(map(version_substrs, string.split("."))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user