From ad7c5dbfea7730150f9e749349bee4e3db12af84 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 28 Aug 2015 16:45:08 +0200 Subject: Fix regex for stripping internal Prolog engine IDs --- 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 344c1d4..5377ac7 100644 --- a/prolog/engine.py +++ b/prolog/engine.py @@ -89,7 +89,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-9]*/src:([0-9]*:)* ", '', text) text = re.sub(r"'[0-9]{10,}':", '', text) return reply['message'], where + text -- cgit v1.2.1