Fix bug with record id parsing

This commit is contained in:
Tobie Morgan Hitchcock 2021-05-13 10:09:51 +01:00
parent 02bacf121c
commit e2635e8cf9

View file

@ -674,7 +674,7 @@ type Thing struct {
func ParseThing(val string) *Thing { func ParseThing(val string) *Thing {
r := strings.NewReader(val) r := strings.NewReader(val)
s := newScanner(r) s := newScanner(r)
if t, _, v := s.scanThing(); t == THING { if t, _, v := s.scanIdiom(); t == THING {
return v.(*Thing) return v.(*Thing)
} }
return nil return nil