added _ to addresse regex
should been fixed in 0d80f20, but forgot about the other two regexs
This commit is contained in:
parent
17acf41f33
commit
5153c38ec7
|
|
@ -343,7 +343,7 @@ def parse(raw_sentence):
|
||||||
break
|
break
|
||||||
|
|
||||||
# try to match announcement
|
# 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:
|
if match:
|
||||||
aid, identifier, text = match[0]
|
aid, identifier, text = match[0]
|
||||||
identifier = identifier.rstrip(' ')
|
identifier = identifier.rstrip(' ')
|
||||||
|
|
@ -357,7 +357,7 @@ def parse(raw_sentence):
|
||||||
break
|
break
|
||||||
|
|
||||||
# validate addresse
|
# 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:
|
if not match:
|
||||||
raise ParseError("invalid addresse in message", raw_sentence)
|
raise ParseError("invalid addresse in message", raw_sentence)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue