Ignore:
Timestamp:
Sep 17, 2024, 1:08:26 AM (7 weeks ago)
Author:
iritscen
Message:

ValBot: Corrected syntax of two strings with regex patterns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ValBot/Python/check_interwiki_links.py

    r1191 r1192  
    180180   for prefix in interwiki_prefixes:
    181181      # Isolate strings that start with "[[prefix:" and end with "|" or "]"
    182       iw_link = "\[\[" + prefix + ":[^|\]]*(\||\])"
     182      iw_link = r"\[\[" + prefix + r":[^|\]]*(\||\])"
    183183      for match in re.finditer(iw_link, page_text):
    184184         # Extract just the page title from this regex match
Note: See TracChangeset for help on using the changeset viewer.