make help case insensitive

This commit is contained in:
Aaron Bieber 2024-08-10 07:27:20 -06:00
parent 202a3436de
commit 67084595ab
No known key found for this signature in database

View File

@ -59,7 +59,7 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
var help = `^help: (\w+)$` var help = `(?i)^help: (\w+)$`
var helpRE = regexp.MustCompile(help) var helpRE = regexp.MustCompile(help)
var kvRE = regexp.MustCompile(`^(.+)\s->\s(.+)$`) var kvRE = regexp.MustCompile(`^(.+)\s->\s(.+)$`)
store, err := NewStore(db) store, err := NewStore(db)