diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-28 16:45:08 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-28 16:45:08 +0200 |
commit | ad7c5dbfea7730150f9e749349bee4e3db12af84 (patch) | |
tree | fc1219b86b87c627ff9b057a68ddcbdc87feb3c9 | |
parent | a507fee954721ec1e79a5277e86f7a4a44ae1a77 (diff) |
Fix regex for stripping internal Prolog engine IDs
-rw-r--r-- | prolog/engine.py | 2 |
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 |