From 4f626b88af126ef0749c3f7a0ee89dab16cde30d Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 12 Mar 2016 10:18:57 +0100 Subject: Fix pengine regex --- prolog/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prolog') diff --git a/prolog/engine.py b/prolog/engine.py index cebadea..2e25e14 100644 --- a/prolog/engine.py +++ b/prolog/engine.py @@ -99,7 +99,7 @@ def _get_message(reply): where += ': ' # Strip HTML and pengine IDs from the messages. text = strip_html(data) - text = re.sub(r"pengine://[0-9]*/src:([0-9]*:)* ", '', text) + text = re.sub(r"pengine://[0-9a-z-]*/src:([0-9]*:)* ", '', text) text = re.sub(r"'[0-9]{10,}':", '', text) return reply['message'], where + text -- cgit v1.2.1