summaryrefslogtreecommitdiff
path: root/ADSBDecoderFramework/ADSBRegEx.swift
diff options
context:
space:
mode:
Diffstat (limited to 'ADSBDecoderFramework/ADSBRegEx.swift')
-rw-r--r--ADSBDecoderFramework/ADSBRegEx.swift12
1 files changed, 8 insertions, 4 deletions
diff --git a/ADSBDecoderFramework/ADSBRegEx.swift b/ADSBDecoderFramework/ADSBRegEx.swift
index 2841467..4e554c0 100644
--- a/ADSBDecoderFramework/ADSBRegEx.swift
+++ b/ADSBDecoderFramework/ADSBRegEx.swift
@@ -21,7 +21,9 @@ let matchADSBLong = Regex {
";"
}*/
-class MatchADSBLong {
+public class MatchADSBLong {
+ public init() {}
+
let matchADSBLong = Regex {
Anchor.startOfLine
"*"
@@ -36,7 +38,7 @@ class MatchADSBLong {
";"
}
- func prefixMatch(_ line: String) -> Regex<Regex<Substring>.RegexOutput>.Match? {
+ public func prefixMatch(_ line: String) -> Regex<Regex<Substring>.RegexOutput>.Match? {
do {
if let match = try matchADSBLong.prefixMatch(in: line) {
return match
@@ -61,7 +63,9 @@ let matchADSBShort = Regex {
";"
}*/
-class MatchADSBShort {
+public class MatchADSBShort {
+ public init() {}
+
let matchADSBShort = Regex {
Anchor.startOfLine
"*"
@@ -74,7 +78,7 @@ class MatchADSBShort {
";"
}
- func prefixMatch(_ line: String) -> Regex<Regex<Substring>.RegexOutput>.Match? {
+ public func prefixMatch(_ line: String) -> Regex<Regex<Substring>.RegexOutput>.Match? {
do {
if let match = try matchADSBShort.prefixMatch(in: line) {
return match