mirror of https://github.com/velour/catbase.git
I had parsing on the brain, I swear
This commit is contained in:
parent
197d6861de
commit
254d723ecf
|
@ -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.MustCompile(`^pick[ \t]+([0-9]*)[ \t]+\{[ \t]+`)
|
||||
var pickerListItem = regexp.MustCompile(`^([^,]+),[ \t]+`)
|
||||
|
||||
func (p * PickerPlugin) parse(body string) (int, []string, error) {
|
||||
subs := pickerListPrologue.FindStringSubmatch(body)
|
||||
|
|
Loading…
Reference in New Issue