Skip to content

Commit

Permalink
fix(config): Trim spaces surrounding categories and action types
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 13, 2023
1 parent 3d18572 commit 85f505b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 85f505b

Please sign in to comment.