summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsimonLeary42 <71396965+simonLeary42@users.noreply.github.com>2024-02-09 09:50:05 -0500
committerGitHub <noreply@github.com>2024-02-09 15:50:05 +0100
commit27b72b76918e9c14df1ca81e7a3e929a4fc44e7e (patch)
tree840aa4ec4adadaeb08bb336c5bff35082c6d62f2 /lib
parentc5e0270ef006b2b04d2f3f89bcaa6bf4d492faae (diff)
downloadspack-27b72b76918e9c14df1ca81e7a3e929a4fc44e7e.tar.gz
spack-27b72b76918e9c14df1ca81e7a3e929a4fc44e7e.tar.bz2
spack-27b72b76918e9c14df1ca81e7a3e929a4fc44e7e.tar.xz
spack-27b72b76918e9c14df1ca81e7a3e929a4fc44e7e.zip
Allow `+` in module file names (#41999)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/llnl/util/filesystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py
index 798d4b55bc..cff512a167 100644
--- a/lib/spack/llnl/util/filesystem.py
+++ b/lib/spack/llnl/util/filesystem.py
@@ -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: