jenkins-bot has submitted this change and it was merged.
Change subject: archivebot.py: prevent overrun of re.search for Japanese ......................................................................
archivebot.py: prevent overrun of re.search for Japanese
Only one character should be allowed in the parentheses.
Change-Id: I2c2e15061fbda31172fb8b81a7332ce7ce093270 --- M archivebot.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/archivebot.py b/archivebot.py index db0bc09..f7de303 100644 --- a/archivebot.py +++ b/archivebot.py @@ -268,7 +268,7 @@ line) # Japanese: 2012年8月4日 (日) 13:01 (UTC) if not TM: - TM = re.search(re.compile(u'(\d\d\d\d)年(\d\d?)月(\d\d?)日 (.*?) (\d\d):(\d\d) (.*?)'), + TM = re.search(re.compile(u'(\d\d\d\d)年(\d\d?)月(\d\d?)日 (.) (\d\d):(\d\d) (.*?)'), line) if TM: # Strip away all diacritics in the Mn ('Mark, non-spacing') category
pywikibot-commits@lists.wikimedia.org