Skip to content

Commit

Permalink
Buff: Added in stripping of : from the ask input.
Browse files Browse the repository at this point in the history
  • Loading branch information
wakatara committed Feb 6, 2024
1 parent 81a98ad commit 0603196
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions harsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "#")
Expand Down

0 comments on commit 0603196

Please sign in to comment.