diff options
author | jao <jao@gnu.org> | 2021-12-31 13:14:28 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-12-31 13:16:36 +0000 |
commit | 0628de0e1dfaef8e64541870018b047a7f342527 (patch) | |
tree | d7e9235fb51e05ec37b252e9618ada78c178ddfd /lib/eos | |
parent | 9193929177a1164c07482165db6a3c624c0544a1 (diff) | |
download | elibs-0628de0e1dfaef8e64541870018b047a7f342527.tar.gz elibs-0628de0e1dfaef8e64541870018b047a7f342527.tar.bz2 |
nits
Diffstat (limited to 'lib/eos')
-rw-r--r-- | lib/eos/jao-tracking.el | 11 |
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) |