Fixed bug where some whitespace was incorrectly removed.

This commit is contained in:
diff 2020-11-13 06:28:07 +00:00
父節點 2438bc43c0
當前提交 8383b65de4

查看文件

@ -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 == "" {