diff --git a/clog/utils/common.py b/clog/utils/common.py index 862b842..062b220 100644 --- a/clog/utils/common.py +++ b/clog/utils/common.py @@ -48,6 +48,5 @@ def is_path_spec(path_spec: str) -> bool: """ ## perform a regex match to ensure that the given path is a ## valid pathspec for the system. - return bool(re.match( - __REGEX_PAT, path_spec.strip(r"\"'")) or re.match(r'^[\w\d\-_]+$', path_spec.strip(r"\"'")) - ) \ No newline at end of file + return bool(re.match(__REGEX_PAT, path_spec.strip(r"\"'")) + or re.match(r'^[\w\d\-_\.]+$', path_spec.strip(r"\"'"))) \ No newline at end of file