Changeset 1192 for ValBot/Python/check_intrawiki_section_links.py
- Timestamp:
- Sep 17, 2024, 1:08:26 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ValBot/Python/check_intrawiki_section_links.py
r1188 r1192 36 36 # Pattern 1: Detect "[[anything]]", "[[any:thing]]", "[[any|thing]]", "[[any:thi|ng]]" 37 37 # Pattern 2: Detect "{{SectionLink|Page|Section name}}", "{{SectionLink||Section name}}" 38 link_patterns = ( "\[\[[^|\]]*(\||\])","\{\{SectionLink\|[^|\}]*\|[^|\}]*\}\}")38 link_patterns = (r"\[\[[^|\]]*(\||\])", r"\{\{SectionLink\|[^|\}]*\|[^|\}]*\}\}") 39 39 40 40 # Initialize globals
Note:
See TracChangeset
for help on using the changeset viewer.