From 152cdc7a2b654b16fb572856d03097580e06e127 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 23 Dec 2022 08:23:03 -0500 Subject: fix: don't forbid plus signs in file names. #1513 --- coverage/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index 5f222419..7443f8c9 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -325,7 +325,7 @@ G2RX_TOKENS = [(re.compile(rx), sub) for rx, sub in [ (r"\?", r"[^/\\\\]"), # ? matches one non slash-like (r"\[.*?\]", r"\g<0>"), # [a-f] matches [a-f] (r"[a-zA-Z0-9_-]+", r"\g<0>"), # word chars match themselves - (r"[\[\]+{}]", None), # Can't have regex special chars + (r"[\[\]]", None), # Can't have single square brackets (r".", r"\\\g<0>"), # Anything else is escaped to be safe ]] -- cgit v1.2.1