allow roaming / portable / mobile calls in wsjt-x message

This commit is contained in:
Jakob Ketterl 2020-12-09 12:47:08 +01:00
parent f71240c9a6
commit a7f667779a

View File

@ -195,7 +195,7 @@ class WsjtParser(Parser):
class Decoder(ABC): class Decoder(ABC):
locator_pattern = re.compile(".*\\s([A-Z0-9]{2,})(\\sR)?\\s([A-R]{2}[0-9]{2})$") locator_pattern = re.compile(".*\\s([A-Z0-9/]{2,})(\\sR)?\\s([A-R]{2}[0-9]{2})$")
def __init__(self, profile): def __init__(self, profile):
self.profile = profile self.profile = profile
@ -250,7 +250,7 @@ class Jt9Decoder(Decoder):
class WsprDecoder(Decoder): class WsprDecoder(Decoder):
wspr_splitter_pattern = re.compile("([A-Z0-9]*)\\s([A-R]{2}[0-9]{2})\\s([0-9]+)") wspr_splitter_pattern = re.compile("([A-Z0-9/]*)\\s([A-R]{2}[0-9]{2})\\s([0-9]+)")
def parse(self, msg, dial_freq): def parse(self, msg, dial_freq):
# wspr sample # wspr sample