Skip to content

Commit

Permalink
remove unicode decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Mar 13, 2023
1 parent 9052042 commit b8de29a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/lang/opaque.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package lang

import (
"unicode"
"unicode/utf8"

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"golang.org/x/exp/maps"
Expand All @@ -27,8 +24,8 @@ func ignoreUnexportedAlways() cmp.Option {
if !ok {
return false
}
r, _ := utf8.DecodeRuneInString(sf.Name())
return !unicode.IsUpper(r)
c := sf.Name()[0]
return c < 'A' || c > 'Z'
},
cmpOptIgnore,
)
Expand Down

0 comments on commit b8de29a

Please sign in to comment.