fix: issue where file with double extensions were not allowed (ex: .mp3.import)
This commit is contained in:
parent
c049a2fe3c
commit
635ca814f4
|
|
@ -37,7 +37,7 @@ def check_path(path: Path) -> bool:
|
|||
return False
|
||||
else:
|
||||
# Check that file name use snake_case.
|
||||
if re.search(r"[a-z]+(?:_[a-z0-9]+)*$", path.stem) is None:
|
||||
if re.search(r"[a-z]+(?:_[a-z0-9]+)*(?:\.[a-z0-9]+)?$", path.stem) is None:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in New Issue