jenkins-bot has submitted this change and it was merged.
Change subject: Bugfix: -titleregex had incorrect argument parsing ......................................................................
Bugfix: -titleregex had incorrect argument parsing
Change-Id: Ic150429e7c6d45d14d84d6e17d6926d89be73773 --- M pywikibot/pagegenerators.py 1 file changed, 3 insertions(+), 4 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index 5be6e16..bd24b0b 100644 --- a/pywikibot/pagegenerators.py +++ b/pywikibot/pagegenerators.py @@ -447,11 +447,10 @@ elif arg.startswith('-google'): gen = GoogleSearchPageGenerator(arg[8:]) elif arg.startswith('-titleregex'): - if len(arg) == 6: - regex = pywikibot.input( - u'What page names are you looking for?') + if len(arg) == 11: + regex = pywikibot.input(u'What page names are you looking for?') else: - regex = arg[7:] + regex = arg[12:] gen = RegexFilterPageGenerator(pywikibot.Site().allpages(), regex) elif arg.startswith('-yahoo'): gen = YahooSearchPageGenerator(arg[7:])
pywikibot-commits@lists.wikimedia.org