Skip to content

Commit

Permalink
Fix for ETX character.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed May 26, 2023
1 parent 75e387c commit 5d5d54d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synop2bufr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ def extract_individual_synop(data: str) -> list:
raise ValueError

d = re.sub(r"\n+", " ", d)
d = re.sub(r"\x03", "", d)
_messages = d.split("=")
num_msg = len(_messages)
for idx in range(num_msg):
Expand Down

0 comments on commit 5d5d54d

Please sign in to comment.