From 8383b65de417e2a08fd33956fb85670a156d92c4 Mon Sep 17 00:00:00 2001 From: Diff Date: Fri, 13 Nov 2020 06:28:07 +0000 Subject: [PATCH] Fixed bug where some whitespace was incorrectly removed. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index f852347..752292a 100644 --- a/main.go +++ b/main.go @@ -110,8 +110,8 @@ func SetStatus(args []string) error { return err } - // Strip whitespace - input = strings.TrimSpace(input) + // Strip whitespace from right + input = strings.TrimRight(input, " \n\t\r") // Remove file on blank input if input == "" {