From 0d80f20e33b49257de5245d37c42f7527f43d79e Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Fri, 26 Dec 2014 14:00:33 +0000 Subject: [PATCH] add underscore as valid char for message addresse fixes #1 --- aprslib/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprslib/parse.py b/aprslib/parse.py index f9f24e5..137fe75 100644 --- a/aprslib/parse.py +++ b/aprslib/parse.py @@ -365,7 +365,7 @@ def parse(raw_sentence): # the while loop is used to easily break out once a match is found while True: # try to match bulletin - match = re.findall(r"^BLN([0-9])([a-zA-Z0-9 \-]{5}):(.{0,67})", body) + match = re.findall(r"^BLN([0-9])([a-z0-9_ \-]{5}):(.{0,67})", body, re.I) if match: bid, identifier, text = match[0] identifier = identifier.rstrip(' ')