Skip to content

Commit

Permalink
Don't decode ignored substrings in content searches, as they now come…
Browse files Browse the repository at this point in the history
… ready to be printed.
  • Loading branch information
plusvic committed Mar 12, 2019
1 parent a62e542 commit ec13bdd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
package cmd

import (
"encoding/hex"
"fmt"
"strings"

Expand Down Expand Up @@ -156,9 +155,7 @@ func getIgnoredSubstrings(meta map[string]interface{}) []string {
ii := i.([]interface{})
ss := make([]string, len(ii))
for i := range ss {
s := ii[i].(string)
h, _ := hex.DecodeString(s)
ss[i] = fmt.Sprintf("{% X} %q", h, h)
ss[i] = ii[i].(string)
}
return ss
}
Expand Down

0 comments on commit ec13bdd

Please sign in to comment.