Handle interface field dereference

This commit is contained in:
Thomas Pelletier
2021-02-10 11:43:57 -05:00
parent 0dad1a950c
commit e2a07a3b92
3 changed files with 17 additions and 92 deletions
+5 -1
View File
@@ -615,7 +615,11 @@ func (p parser) parseIntOrFloatOrDateTime(b []byte) ([]byte, error) {
if len(b) < 3 {
return p.parseIntOrFloat(b)
}
for idx, c := range b[:5] {
s := 5
if len(b) < s {
s = len(b)
}
for idx, c := range b[:s] {
if c >= '0' && c <= '9' {
continue
}