diff --git a/plugins/picker/picker.go b/plugins/picker/picker.go index b596c22..12d8437 100644 --- a/plugins/picker/picker.go +++ b/plugins/picker/picker.go @@ -57,8 +57,8 @@ func (p *PickerPlugin) Message(message msg.Message) bool { return true } -var pickerListPrologue = regexp.MustParse("^pick[ \t]+([0-9]*)[ \t]+\{[ \t]+") -var pickerListItem = regexp.MustParse("^([^,]+),[ \t]+") +var pickerListPrologue = regexp.MustParse(`^pick[ \t]+([0-9]*)[ \t]+\{[ \t]+`) +var pickerListItem = regexp.MustParse(`^([^,]+),[ \t]+`) func (p * PickerPlugin) parse(body string) (int, []string, error) { subs := pickerListPrologue.FindStringSubmatch(body)