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_intrawiki_section_links.py

    r1188 r1192  
    3636# Pattern 1: Detect "[[anything]]", "[[any:thing]]", "[[any|thing]]", "[[any:thi|ng]]"
    3737# Pattern 2: Detect "{{SectionLink|Page|Section name}}", "{{SectionLink||Section name}}"
    38 link_patterns = ("\[\[[^|\]]*(\||\])", "\{\{SectionLink\|[^|\}]*\|[^|\}]*\}\}")
     38link_patterns = (r"\[\[[^|\]]*(\||\])", r"\{\{SectionLink\|[^|\}]*\|[^|\}]*\}\}")
    3939
    4040# Initialize globals
Note: See TracChangeset for help on using the changeset viewer.