| # | Line 179 | Line 179 | def scan_for_interwiki_links(page_text, | |
|---|---|---|
| 179 | ||
| 180 | for prefix in interwiki_prefixes: | |
| 181 | # Isolate strings that start with "[[prefix:" and end with "|" or "]" | |
| 182 | < | iw_link = "\[\[" + prefix + ":[^|\]]*(\||\])" |
| 182 | > | iw_link = r"\[\[" + prefix + r":[^|\]]*(\||\])" |
| 183 | for match in re.finditer(iw_link, page_text): | |
| 184 | # Extract just the page title from this regex match | |
| 185 | s = match.start() + 2 + len(prefix) + 1 | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |