Allow + in module file names (#41999)

This commit is contained in:
simonLeary42 2024-02-09 09:50:05 -05:00 committed by GitHub
parent c5e0270ef0
commit 27b72b7691
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,7 +171,7 @@ def polite_path(components: Iterable[str]):
@memoized
def _polite_antipattern():
# A regex of all the characters we don't want in a filename
return re.compile(r"[^A-Za-z0-9_.-]")
return re.compile(r"[^A-Za-z0-9_+.-]")
def polite_filename(filename: str) -> str: