http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11300
Revision: 11300 Author: binbot Date: 2013-03-30 09:05:57 +0000 (Sat, 30 Mar 2013) Log Message: ----------- Two new exceptions.insidetags: 'property' for Wikidata property inclusions 'invoke' for module invocations (currently only Lua)
Modified Paths: -------------- trunk/pywikipedia/pywikibot/textlib.py
Modified: trunk/pywikipedia/pywikibot/textlib.py =================================================================== --- trunk/pywikipedia/pywikibot/textlib.py 2013-03-29 17:43:58 UTC (rev 11299) +++ trunk/pywikipedia/pywikibot/textlib.py 2013-03-30 09:05:57 UTC (rev 11300) @@ -7,7 +7,7 @@
""" # -# (C) Pywikipedia bot team, 2004-2012 +# (C) Pywikipedia bot team, 2004-2013 # # Distributed under the terms of the MIT license. # @@ -91,6 +91,10 @@ % '|'.join(site.validLanguageLinks() + site.family.obsolete.keys()) ), + # Wikidata property inclusions + 'property': re.compile(r'(?i){{\s*#property:\s*p\d+\s*}}'), + # Module invocations (currently only Lua) + 'invoke': re.compile(r'(?i){{\s*#invoke:.*?}}'),
}
pywikipedia-svn@lists.wikimedia.org