From 1cc85e224cd7e75dd24491ae01572a9fdd4585bf Mon Sep 17 00:00:00 2001 From: Frisk Date: Mon, 12 Nov 2018 11:44:42 +0100 Subject: [PATCH] Fixed regex --- rcgcdw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcgcdw.py b/rcgcdw.py index ea504a6..14bf648 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -966,7 +966,7 @@ class recent_changes_class(object): # I so much hate this, blame Markus for making me do this if change["revid"] not in categorize_events: categorize_events[change["revid"]] = {"new": [], "removed": []} - comment_to_match = re.sub('<.*>', '', change["parsedcomment"]) + comment_to_match = re.sub('<.*?>', '', change["parsedcomment"]) if recent_changes.mw_messages["recentchanges-page-added-to-category"].replace("[[:$1]]", "") in comment_to_match: categorize_events[change["revid"]]["new"].append(cat_title) logging.debug("Matched {} to added category for {}".format(cat_title, change["revid"]))