We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed0fe1d commit 60bab5eCopy full SHA for 60bab5e
1 file changed
cmd/root.go
@@ -70,7 +70,7 @@ Find document on: https://github.com/zu1k/nali
70
if gbk {
71
line, _, _ = transform.String(simplifiedchinese.GBK.NewDecoder(), line)
72
}
73
- if line == "quit" || line == "exit" {
+ if line := strings.TrimSpace(line); line == "quit" || line == "exit" {
74
return
75
76
_, _ = fmt.Fprintf(color.Output, "%s", entity.ParseLine(line).ColorString())
0 commit comments