case insenstive zonking

This commit is contained in:
Ted Unangst 2019-05-30 18:35:31 -04:00
parent d3e480d6fc
commit 600e6d47a3
1 changed files with 2 additions and 1 deletions

3
fun.go
View File

@ -444,7 +444,8 @@ func bitethethumbs() {
continue
}
if wherefore == "zword" {
re, err := regexp.Compile("\\b" + name + "\\b")
zword := "\\b(?i:" + name + ")\\b"
re, err := regexp.Compile(zword)
if err != nil {
log.Printf("error compiling zword: %s", err)
} else {