From 4ca705f8572896f73fe23dd6e3d482d9d845cf82 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 30 May 2019 11:35:05 +0300 Subject: [PATCH] fix --- taf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taf.go b/taf.go index e0f0c43..8ac76cf 100644 --- a/taf.go +++ b/taf.go @@ -76,7 +76,7 @@ func NewTAF(inputtext string) *TAFMessage { position := 0 for key, value := range headermap { if value != "" && key != "to" { // field "from" and "to" - it's one token (DDhh/DDhh), and they are mandatory. - count++ + position++ } } endposition := t.findTrendsInMessage(tokens, position)