mirror of
https://github.com/on4kjm/FLEcli.git
synced 2025-01-19 05:01:18 +01:00
Move the regexp as a global var
This commit is contained in:
parent
7a66731817
commit
c498c72fb1
1 changed files with 1 additions and 1 deletions
|
@ -40,11 +40,11 @@ type LogLine struct {
|
|||
QSLmsg string
|
||||
}
|
||||
|
||||
var regexpIsBand = regexp.MustCompile("m$")
|
||||
|
||||
// ParseLine cuts a FLE line into useful bits
|
||||
func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg string){
|
||||
//TODO: input null protection?
|
||||
regexpIsBand, _ := regexp.Compile("m$")
|
||||
|
||||
logLine = previousLine
|
||||
|
||||
|
|
Loading…
Reference in a new issue