Removed trailing characters from PHG field

This commit is contained in:
Bill Mitchell 2018-07-29 21:24:51 -05:00
parent 94b89a6da4
commit b9fe14af37
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def parse_data_extentions(body):
if nrq.isdigit():
parsed.update({'nrq': int(nrq)})
else:
match = re.findall(r"^(PHG(\d[\x30-\x7e]\d\d[0-9A-Z]?))", body)
match = re.findall(r"^(PHG(\d[\x30-\x7e]\d\d))", body)
if match:
ext, phg = match[0]
body = body[len(ext):]