fix: issue where file with double extensions were not allowed (ex: .mp3.import)

This commit is contained in:
Adrien Allard 2025-02-13 12:35:05 +01:00
parent c049a2fe3c
commit 635ca814f4
1 changed files with 1 additions and 1 deletions

View File

@ -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