|
|
|
@ -98,12 +98,12 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
|
|
|
|
|
|
|
|
|
|
//TODO: what happens when we have <> or when there are multiple comments
|
|
|
|
|
//TODO: Refactor this! it is ugly
|
|
|
|
|
comment, inputStr := getBraketedData(inputStr, COMMENT)
|
|
|
|
|
comment, inputStr := getBracketedData(inputStr, COMMENT)
|
|
|
|
|
if comment != "" {
|
|
|
|
|
logLine.Comment = comment
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QSLmsg, inputStr := getBraketedData(inputStr, QSL)
|
|
|
|
|
QSLmsg, inputStr := getBracketedData(inputStr, QSL)
|
|
|
|
|
if QSLmsg != "" {
|
|
|
|
|
logLine.QSLmsg = QSLmsg
|
|
|
|
|
}
|
|
|
|
@ -125,7 +125,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
|
|
|
|
|
logLine.RSTrcvd = defaultReport
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
errorMsg = errorMsg + "Double definitiion of RST"
|
|
|
|
|
errorMsg = errorMsg + "Double definition of RST"
|
|
|
|
|
}
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
@ -295,7 +295,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
|
|
|
|
|
|
|
|
|
|
// If the "wwff" keyword is used, skip it
|
|
|
|
|
if regexpIsWwffKeyWord.MatchString(element) {
|
|
|
|
|
// this keyword is not requiered anymore with FLE 3 and doesn't add any value
|
|
|
|
|
// this keyword is not required anymore with FLE 3 and doesn't add any value
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -308,7 +308,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
|
|
|
|
|
|
|
|
|
|
// If the "pota" keyword is used, skip it
|
|
|
|
|
if regexpIsPotaKeyWord.MatchString(element) {
|
|
|
|
|
// this keyword is not requiered anymore with FLE 3 and doesn't add any value
|
|
|
|
|
// this keyword is not required anymore with FLE 3 and doesn't add any value
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -321,7 +321,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
|
|
|
|
|
|
|
|
|
|
// If the "sota" keyword is used, skip it
|
|
|
|
|
if regexpIsSotaKeyWord.MatchString(element) {
|
|
|
|
|
// this keyword is not requiered anymore with FLE 3 and doesn't add any value
|
|
|
|
|
// this keyword is not required anymore with FLE 3 and doesn't add any value
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|