From b9fe14af378e20542ec937765ac095685fbd2d1f Mon Sep 17 00:00:00 2001 From: Bill Mitchell Date: Sun, 29 Jul 2018 21:24:51 -0500 Subject: [PATCH] Removed trailing characters from PHG field --- aprslib/parsing/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprslib/parsing/common.py b/aprslib/parsing/common.py index dd8d9cd..8c1219f 100644 --- a/aprslib/parsing/common.py +++ b/aprslib/parsing/common.py @@ -151,7 +151,7 @@ def parse_data_extentions(body): if nrq.isdigit(): parsed.update({'nrq': int(nrq)}) else: - match = re.findall(r"^(PHG(\d[\x30-\x7e]\d\d[0-9A-Z]?))", body) + match = re.findall(r"^(PHG(\d[\x30-\x7e]\d\d))", body) if match: ext, phg = match[0] body = body[len(ext):]