summaryrefslogtreecommitdiff
path: root/sphinx/util/matching.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/matching.py')
-rw-r--r--sphinx/util/matching.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/matching.py b/sphinx/util/matching.py
index 5350b623a..00d988c3a 100644
--- a/sphinx/util/matching.py
+++ b/sphinx/util/matching.py
@@ -49,7 +49,7 @@ def _translate_pattern(pat: str) -> str:
stuff = '^/' + stuff[1:]
elif stuff[0] == '^':
stuff = '\\' + stuff
- res = '%s[%s]' % (res, stuff)
+ res = f'{res}[{stuff}]'
else:
res += re.escape(c)
return res + '$'