--- ValBot/Python/check_interwiki_links.py 2024/07/06 22:01:44 1191 +++ ValBot/Python/check_interwiki_links.py 2024/09/16 23:08:26 1192 @@ -179,7 +179,7 @@ def scan_for_interwiki_links(page_text, for prefix in interwiki_prefixes: # Isolate strings that start with "[[prefix:" and end with "|" or "]" - iw_link = "\[\[" + prefix + ":[^|\]]*(\||\])" + iw_link = r"\[\[" + prefix + r":[^|\]]*(\||\])" for match in re.finditer(iw_link, page_text): # Extract just the page title from this regex match s = match.start() + 2 + len(prefix) + 1