summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/eos/jao-tracking.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/eos/jao-tracking.el b/lib/eos/jao-tracking.el
index 85c78db..520116d 100644
--- a/lib/eos/jao-tracking.el
+++ b/lib/eos/jao-tracking.el
@@ -30,10 +30,13 @@
(dolist (m modes) (add-to-list 'tracking-shorten-modes m)))
(defun jao-tracking--clean-slack (s)
- (let ((s (replace-regexp-in-string
- "^\\*Slack - .*? : \\(mpdm-\\)?\\([^ ]+\\)\\( \\(T\\)\\)?.*"
- "#\\2\\4"
- s)))
+ (let* ((s (replace-regexp-in-string
+ "^\\*Slack - .*? : \\(mpdm-\\)?\\([^ ]+\\)\\( \\(T\\)\\)?.*"
+ "#\\2\\4"
+ s))
+ (s (replace-regexp-in-string "logstash-\\([^-]+\\)-\\(.+\\)"
+ "\\2-\\1"
+ s)))
(replace-regexp-in-string "^[^a-zA-Z#]+" "#" s)))
(defun jao-tracking-shorten-aggressively (lst tail-count)