Skip to content

Commit cf05fc9

Browse files
committed
updated regex for clarity (i think the utf8 symbol is too easy to misread within the regex)
1 parent 0734980 commit cf05fc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/prep_cc4_code.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,15 @@ def handle_placeholders(self, content):
181181
elif placeholder_pair == "language-footer":
182182
re_pattern = re.compile(
183183
r"""
184-
# Language list
184+
# Language footer
185185
(?P<prefix>
186186
^\s*<p\ class="shaded(?:\ a-nobreak)?">\s*
187187
<a(?:\ name="languages")?\ id="languages">
188188
.*?</a>[^<]+
189189
)
190190
(?P<languages>
191-
.*?</a>[.。]
191+
# \u3002 is ideographic full stop
192+
.*?</a>[.\u3002]
192193
)
193194
(?=.*officialtranslations)
194195
""",

0 commit comments

Comments
 (0)