summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 16:45:08 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 16:45:08 +0200
commitad7c5dbfea7730150f9e749349bee4e3db12af84 (patch)
treefc1219b86b87c627ff9b057a68ddcbdc87feb3c9 /prolog
parenta507fee954721ec1e79a5277e86f7a4a44ae1a77 (diff)
Fix regex for stripping internal Prolog engine IDs
Diffstat (limited to 'prolog')
-rw-r--r--prolog/engine.py2
1 files changed, 1 insertions, 1 deletions
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