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 b37bf02 commit e4a9bd6Copy full SHA for e4a9bd6
helpers.go
@@ -0,0 +1,26 @@
1
+package main
2
+
3
+import (
4
+ "unicode"
5
+)
6
7
+func contains(slice []int, value int) bool {
8
+ for _, v := range slice {
9
+ if v == value {
10
+ return true
11
+ }
12
13
+ return false
14
+}
15
16
+func removeNonPrintableAscii(input string) string {
17
+ var resultBuilder []rune
18
19
+ for _, char := range input {
20
+ if unicode.IsPrint(char) && char >= 32 && char != 127 {
21
+ resultBuilder = append(resultBuilder, char)
22
23
24
25
+ return string(resultBuilder)
26
0 commit comments