Skip to content

Commit ec13bdd

Browse files
committed
Don't decode ignored substrings in content searches, as they now come ready to be printed.
1 parent a62e542 commit ec13bdd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/search.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
package cmd
1515

1616
import (
17-
"encoding/hex"
1817
"fmt"
1918
"strings"
2019

@@ -156,9 +155,7 @@ func getIgnoredSubstrings(meta map[string]interface{}) []string {
156155
ii := i.([]interface{})
157156
ss := make([]string, len(ii))
158157
for i := range ss {
159-
s := ii[i].(string)
160-
h, _ := hex.DecodeString(s)
161-
ss[i] = fmt.Sprintf("{% X} %q", h, h)
158+
ss[i] = ii[i].(string)
162159
}
163160
return ss
164161
}

0 commit comments

Comments
 (0)