Skip to content

Commit

Permalink
Merge pull request #54 from neuhausf/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmerza authored Jun 14, 2023
2 parents 47c50e9 + 317c1c0 commit ee3ffca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/email/parsers/swiss_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def parse_swiss_post(email):
for link in links:
if not link:
continue
match = re.search('formattedParcelCodes=(.*?)$', link)
match = re.search('formattedParcelCodes=(\d+)', link)
if match and match.group(1) not in tracking_numbers:
tracking_numbers.append(match.group(1))

Expand Down

0 comments on commit ee3ffca

Please sign in to comment.