add underscore as valid char for message addresse

fixes #1
This commit is contained in:
Rossen Georgiev 2014-12-26 14:00:33 +00:00
parent 4b1dad52d2
commit 0d80f20e33
1 changed files with 1 additions and 1 deletions

View File

@ -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(' ')