Skip to content

Commit

Permalink
Fix Regex
Browse files Browse the repository at this point in the history
The regex isn't matching the responses from the waveform because hey have the final | truncated.
Add this to the possibility on the regex.
  • Loading branch information
mcdermj committed Jan 26, 2020
1 parent b964665 commit 771d98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssdrapiclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 771d98d

Please sign in to comment.