Ladsgroup has uploaded a new change for review.
https://gerrit.wikimedia.org/r/191865
Change subject: Minor imporvment to regex pattern of archivebot
......................................................................
Minor imporvment to regex pattern of archivebot
Change-Id: Iff437c0748e07139e44c0bd5276265c3f303e99d
---
M scripts/archivebot.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/65/191865/1
diff --git a/scripts/archivebot.py b/scripts/archivebot.py
index dc13f7d..9a94912 100644
--- a/scripts/archivebot.py
+++ b/scripts/archivebot.py
@@ -535,7 +535,7 @@
self.archives[a].update(comment)
# Save the page itself
- rx = re.compile(r"{{(?:%s)?\:?%s\n.*?\n}}" % (u'|'.join(
+ rx = re.compile(r"\{\{(?:%s)?\:?%s\s*?\n.*?\n\}\}" % (u'|'.join(
set(self.site.namespaces[self.tpl.namespace()])),
re.escape(self.tpl.title(withNamespace=False))), re.DOTALL)
if not rx.search(self.page.header):
--
To view, visit https://gerrit.wikimedia.org/r/191865
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iff437c0748e07139e44c0bd5276265c3f303e99d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits