From 83787842313bbef0194b1399620c18433eefaba4 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Fri, 27 Jun 2025 12:16:06 +0200 Subject: [PATCH] Enclose terms by spaces in app detection --- internal/tagger/detectApp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tagger/detectApp.go b/internal/tagger/detectApp.go index 00f8286..6b73f56 100644 --- a/internal/tagger/detectApp.go +++ b/internal/tagger/detectApp.go @@ -111,7 +111,7 @@ func (t *AppTagger) Match(job *schema.Job) { for _, a := range t.apps { tag := a.tag for _, s := range a.strings { - if strings.Contains(strings.ToLower(jobscript), s) { + if strings.Contains(strings.ToLower(jobscript), fmt.Sprintf(" %s ", s)) { if !r.HasTag(id, t.tagType, tag) { r.AddTagOrCreateDirect(id, t.tagType, tag) break out