From 0603196cfbd48b3fea1823e98be202490bedc5cd Mon Sep 17 00:00:00 2001 From: Daryl Manning Date: Tue, 6 Feb 2024 10:53:38 +0800 Subject: [PATCH] Buff: Added in stripping of : from the ask input. --- harsh.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/harsh.go b/harsh.go index 07433b3..155e0f5 100755 --- a/harsh.go +++ b/harsh.go @@ -336,6 +336,9 @@ func (h *Harsh) askHabits() { break } + // Sanitize : colons out of string for log files + habitResultInput = strings.ReplaceAll(habitResultInput, ":", "") + var result, amount, comment string atIndex := strings.Index(habitResultInput, "@") hashIndex := strings.Index(habitResultInput, "#")