add dep test

This commit is contained in:
zhiqiang feng
2021-01-04 16:02:13 +08:00
parent 8157e0c5eb
commit 576216f712
4 changed files with 34 additions and 6 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ func Parse(text string) (*Telegram, error) {
r := regexp.MustCompile(FlopRegex)
data := r.FindString(telegram.Text)
switch telegram.Type {
case TypeArrival:
parseArr(telegram, data)
case TypeArrival, TypeDeparture:
parseArrOrDep(telegram, data)
}
}
return telegram, nil