fix composite

This commit is contained in:
zhiqiang feng
2021-01-05 18:04:17 +08:00
parent 625cc6b94e
commit 99440a393a
3 changed files with 80 additions and 31 deletions
+5
View File
@@ -17,6 +17,7 @@ type Telegram struct {
FlopValue []string
FlightNumber string
Plane string
Aircraft string
RegisterNumber string
Departure string
DepartureTime time.Time
@@ -109,3 +110,7 @@ func parseDof(text string) time.Time {
dof, _ := time.Parse("060102", value["time"])
return dof
}
func getOtherRegexWithName(name string) string {
return strings.ReplaceAll(OtherRegex, "NAME", name)
}