We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74dd291 commit 79d070aCopy full SHA for 79d070a
scripts/find_set_subst.py
@@ -20,8 +20,8 @@ def get_subst_from_file(file):
20
"""
21
22
# defines a pattern for a substitution
23
- # anything inside || except is preceded by ..
24
- s_pattern = re.compile(r"(?<!\.\. )\|([\w\d-]+)\|")
+ # i.e., anything inside || except is preceded by .. and/or not surrounded by a character
+ s_pattern = re.compile(r"(?<!\.\. )(?<!\w)\|([\w\d-]+)\|(?![\w-])")
25
s_title = re.compile(r"\.\. Substitutions definitions - AVOID EDITING "
26
r"PAST THIS LINE\n")
27
subs = []
0 commit comments