Mods
This commit is contained in:
parent
cd246ef027
commit
6b2010fa16
2
main.py
2
main.py
|
@ -35,7 +35,7 @@ def get_path(name):
|
||||||
return str(Path(HERE, name))
|
return str(Path(HERE, name))
|
||||||
|
|
||||||
def extract_range(string):
|
def extract_range(string):
|
||||||
pattern = re.compile(r"\s*(\d+)\s*(?:-\s*(\d+))?\s*")
|
pattern = re.compile(r"\s*(\d+)\s*(\d+)?\s*")
|
||||||
match = pattern.search(string)
|
match = pattern.search(string)
|
||||||
|
|
||||||
if not match:
|
if not match:
|
||||||
|
|
Loading…
Reference in New Issue