summaryrefslogtreecommitdiff
path: root/LearnMapKit/ADSBFileRunner.swift
diff options
context:
space:
mode:
Diffstat (limited to 'LearnMapKit/ADSBFileRunner.swift')
-rw-r--r--LearnMapKit/ADSBFileRunner.swift3
1 files changed, 2 insertions, 1 deletions
diff --git a/LearnMapKit/ADSBFileRunner.swift b/LearnMapKit/ADSBFileRunner.swift
index d61b91b..796892c 100644
--- a/LearnMapKit/ADSBFileRunner.swift
+++ b/LearnMapKit/ADSBFileRunner.swift
@@ -59,7 +59,8 @@ class ADSBFileRunner {
for line in self.adsb_source.components(separatedBy: .newlines) {
var found=false
do {
- if let tokenMatch = try matchADSBLong.prefixMatch(in: line) {
+ let matchADSBLong = MatchADSBLong()
+ if let tokenMatch = matchADSBLong.prefixMatch(line) {
//print("\(String(tokenMatch.output))")
found = true
let str = String(tokenMatch.output)