From 771d98d7873c88a8a1e0f8c3fd7ae57816962fe7 Mon Sep 17 00:00:00 2001 From: Annaliese McDermond Date: Sun, 26 Jan 2020 15:08:41 -0800 Subject: [PATCH] Fix Regex The regex isn't matching the responses from the waveform because hey have the final | truncated. Add this to the possibility on the regex. --- ssdrapiclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssdrapiclient.py b/ssdrapiclient.py index e9e69fa..19597ef 100644 --- a/ssdrapiclient.py +++ b/ssdrapiclient.py @@ -26,7 +26,7 @@ def __init__(self, frame: SsdrFdvClientFrame) -> None: self.slices = {} self.frame = frame self.completion_list = {} - self.response_matcher = re.compile(r'R([0-9]+)\|([0-9A-Z]{0,8})\|(.*)') + self.response_matcher = re.compile(r'R([0-9]+)\|([0-9A-Z]{0,8})\|?(.*)') frame.set_mode_handler(self.mode_handler) def mode_handler(self, event):