ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/ValBot/Python/check_intrawiki_section_links.py
(Generate patch)

Comparing ValBot/Python/check_intrawiki_section_links.py (file contents):
Revision 1188 by iritscen, Tue Jan 23 03:53:05 2024 UTC vs.
Revision 1192 by iritscen, Mon Sep 16 23:08:26 2024 UTC

# Line 35 | Line 35 | chapter_names = ['CHAPTER_00_._COMBAT_TR
35   # Tuple of patterns for recognizing wikilinks
36   # Pattern 1: Detect "[[anything]]", "[[any:thing]]", "[[any|thing]]", "[[any:thi|ng]]"
37   # Pattern 2: Detect "{{SectionLink|Page|Section name}}", "{{SectionLink||Section name}}"
38 < link_patterns = ("\[\[[^|\]]*(\||\])", "\{\{SectionLink\|[^|\}]*\|[^|\}]*\}\}")
38 > link_patterns = (r"\[\[[^|\]]*(\||\])", r"\{\{SectionLink\|[^|\}]*\|[^|\}]*\}\}")
39  
40   # Initialize globals
41   debug = 0

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)