1
0
mirror of https://github.com/zu1k/nali.git synced 2025-01-22 13:19:02 +08:00

fix: Query error causes idx not updated

This commit is contained in:
zu1k 2023-11-24 16:18:06 +08:00
parent ec2ae52f36
commit 05746b1a9d

View File

@ -60,9 +60,11 @@ func ParseLine(line string) Entities {
e.InfoText = res.String()
e.Info = res.Result
e.Source = res.Source
es = append(es, e)
idx = e.Loc[1]
} else {
e.Type = TypePlain
}
idx = e.Loc[1]
es = append(es, e)
}
}
if total := len(line); idx < total {