Skip to content

Commit

Permalink
hex != octal
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Jul 11, 2017
1 parent 0752d43 commit 48e78cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func StringArrayContains(s []string, e string) bool {
return false
}

var invalidChars = regexp.MustCompile("([\u0000-\u0010]|[\u0013-\u0014]|[\u0016-\u0037])")
var invalidChars = regexp.MustCompile("([\u0000-\u0008]|[\u000B-\u000C]|[\u000E-\u001F])")

// CleanString removes any control characters from the passed in string
func CleanString(s string) string {
Expand Down

0 comments on commit 48e78cc

Please sign in to comment.