nbutton23 / zxcvbn-go

zxcvbn password complexity algorithm in golang
MIT License
379 stars 49 forks source link

Go 1.10: adjcmartix.go:85: suspect or: char != "" || char != " " #26

Closed nim-nim closed 6 years ago

nim-nim commented 6 years ago

Version 0.1 does not pass unit tests with Go 1.10:

+ GOPATH=/builddir/build/BUILD/zxcvbn-go-0.1/_build:/usr/share/gocode
+ go test -buildmode pie -compiler gc -ldflags '-extldflags '\''-Wl,-z,relro  '\'''
# github.com/nbutton23/zxcvbn-go/adjacency
./adjcmartix.go:85: suspect or: char != "" || char != " "
FAIL    github.com/nbutton23/zxcvbn-go/adjacency [build failed]
nbutton23 commented 6 years ago

Fixed