[Pywikipedia-l] SVN: [4820] trunk/pywikipedia/blockpageschecker.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Sun Jan 6 12:47:04 UTC 2008


Revision: 4820
Author:   filnik
Date:     2008-01-06 12:47:04 +0000 (Sun, 06 Jan 2008)

Log Message:
-----------
I have delete a few pt-regex and I've added one super-regex that make the same as the previous, now deleted

Modified Paths:
--------------
    trunk/pywikipedia/blockpageschecker.py

Modified: trunk/pywikipedia/blockpageschecker.py
===================================================================
--- trunk/pywikipedia/blockpageschecker.py	2008-01-05 19:11:20 UTC (rev 4819)
+++ trunk/pywikipedia/blockpageschecker.py	2008-01-06 12:47:04 UTC (rev 4820)
@@ -65,13 +65,7 @@
                   r'{\{(?:[Tt]emplate:|)[Aa]bp(?:|[ _]scad\|(?:.*?))\}\}'],
             'ja':[r'\{\{(?:[Tt]emplate:|)(?:半|移動|移動半|)保護(?:S|)\}\}',],
             'pt':[r'\{\{(?:[Tt]emplate:|)[Pp]rotegido(?:\|*)\}\}',
-                  r'\{\{(?:[Tt]emplate:|)[Pp]rotegidaPP\}\}',
-                  r'\{\{(?:[Tt]emplate:|)[Pp]rotegida\}\}',
-                  r'\{\{(?:[Tt]emplate:|)[Pp]rotegido-ip\}\}',
-                  r'\{\{(?:[Tt]emplate:|)[Pp]rotegida ip\}\}',
-                  r'\{\{(?:[Tt]emplate:|)[Pp]rotegidoIP\}\}',
-                  r'\{\{(?:[Tt]emplate:|)[Pp]rotegidaIP\}\}',
-                  r'\{\{(?:[Tt]emplate:|)[Ss]emi-protegida\}\}'],
+                  r'\{\{(?:[Tt]emplate:|)(?:[Ss]emi-|)[Pp]rotegid[ao](?:IP|[- _]ip|PP|)\}\}'],
             'zh':[r'\{\{(?:[Tt]emplate:|)Protected(?:\|*)\}\}',r'\{\{(?:[Tt]emplate:|)Mini-protected(?:\|*)\}\}',
                 r'\{\{(?:[Tt]emplate:|)Protected logo(?:\|*)\}\}'],
             }





More information about the Pywikipedia-l mailing list