parent
4b1dad52d2
commit
0d80f20e33
|
|
@ -365,7 +365,7 @@ def parse(raw_sentence):
|
||||||
# the while loop is used to easily break out once a match is found
|
# the while loop is used to easily break out once a match is found
|
||||||
while True:
|
while True:
|
||||||
# try to match bulletin
|
# 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:
|
if match:
|
||||||
bid, identifier, text = match[0]
|
bid, identifier, text = match[0]
|
||||||
identifier = identifier.rstrip(' ')
|
identifier = identifier.rstrip(' ')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue