summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-12-31 13:14:28 +0000
committerjao <jao@gnu.org>2021-12-31 13:16:36 +0000
commit0628de0e1dfaef8e64541870018b047a7f342527 (patch)
treed7e9235fb51e05ec37b252e9618ada78c178ddfd /lib
parent9193929177a1164c07482165db6a3c624c0544a1 (diff)
downloadelibs-0628de0e1dfaef8e64541870018b047a7f342527.tar.gz
elibs-0628de0e1dfaef8e64541870018b047a7f342527.tar.bz2
nits
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)