From 5153c38ec70d13bccd2df04b23ab12e942dd668e Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Tue, 30 Dec 2014 20:31:54 +0000 Subject: [PATCH] added _ to addresse regex should been fixed in 0d80f20, but forgot about the other two regexs --- aprslib/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aprslib/parse.py b/aprslib/parse.py index c68b54d..5d43489 100644 --- a/aprslib/parse.py +++ b/aprslib/parse.py @@ -343,7 +343,7 @@ def parse(raw_sentence): break # try to match announcement - match = re.findall(r"^BLN([A-Z])([a-zA-Z0-9 \-]{5}):(.{0,67})", body) + match = re.findall(r"^BLN([A-Z])([a-zA-Z0-9_ \-]{5}):(.{0,67})", body) if match: aid, identifier, text = match[0] identifier = identifier.rstrip(' ') @@ -357,7 +357,7 @@ def parse(raw_sentence): break # validate addresse - match = re.findall(r"^([a-zA-Z0-9 \-]{9}):(.*)$", body) + match = re.findall(r"^([a-zA-Z0-9_ \-]{9}):(.*)$", body) if not match: raise ParseError("invalid addresse in message", raw_sentence)