Skip to content

Commit 563eacf

Browse files
committed
refactor: be safe with a regex special character
1 parent 5f1d0f4 commit 563eacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def substitute_variables(text: str, variables: Mapping[str, str]) -> str:
246246
(?: # then
247247
(?P<dollar>\$) | # a dollar sign, or
248248
(?P<word1>\w+) | # a plain word, or
249-
{ # a {-wrapped
249+
\{ # a {-wrapped
250250
(?P<word2>\w+) # word,
251251
(?:
252252
(?P<strict>\?) | # with a strict marker

0 commit comments

Comments
 (0)