style: escape regex char
This commit is contained in:
parent
4a7d385459
commit
c1a572f845
2
build.py
2
build.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue