Skip to content

Commit

Permalink
Small problem in commet trimming.
Browse files Browse the repository at this point in the history
  • Loading branch information
danalex97 committed Apr 26, 2018
1 parent d2df621 commit 06f2b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/json_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func trimComments(arr []byte) []byte {

out := ""
for _, v := range strings.Split(str, "\n") {
if len(strings.TrimSpace(v)) > 3 {
if len(strings.TrimSpace(v)) >= 2 {
if strings.TrimSpace(v)[:2] != "//" {
out = out + v
}
Expand Down

0 comments on commit 06f2b1d

Please sign in to comment.