style: escape regex char

This commit is contained in:
Ming Di Leom 2023-02-04 22:40:01 +00:00
parent 4a7d385459
commit c1a572f845
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def exclusion(tarinfo):
# exclude certain folders/files
pathname = tarinfo.name
if search(
r"/\.|\\\.|__pycache__|pyproject.toml|requirements|build.py|tar.gz", pathname
r"/\.|\\\.|__pycache__|pyproject\.toml|requirements|build\.py|tar\.gz", pathname
):
return None