diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-12 10:18:57 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-12 10:18:57 +0100 |
commit | 4f626b88af126ef0749c3f7a0ee89dab16cde30d (patch) | |
tree | 7cda610e5f32fe5865a0087275878853a6dc2d7d | |
parent | 47b94aeba09083cb94d996c6758fa0d5ab64ecf3 (diff) |
Fix pengine regex
-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 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 |