We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0fe1d commit 60bab5eCopy full SHA for 60bab5e
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