diff --git a/fc_hooks/__init__.py b/fc_hooks/__init__.py index adc5bec..796d86e 100644 --- a/fc_hooks/__init__.py +++ b/fc_hooks/__init__.py @@ -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