From 85f505b28bdeae6f32d942cf9482c1e425ff1810 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Fri, 13 Oct 2023 03:25:23 -0500 Subject: [PATCH] fix(config): Trim spaces surrounding categories and action types --- internal/config/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index b2ee47d..1931e35 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -100,5 +100,13 @@ func (c *Config) Load() error { } } + for i, category := range c.Categories { + c.Categories[i] = strings.TrimSpace(category) + } + + for i, actionType := range c.ActionTypes { + c.ActionTypes[i] = strings.TrimSpace(actionType) + } + return nil }