Skip to content

Commit

Permalink
Merge pull request #26 from vavdb/patch-1
Browse files Browse the repository at this point in the history
Optional NUL after checksum
  • Loading branch information
Nigel Dokter committed Sep 18, 2017
2 parents c78ebe3 + e3203a5 commit 41381f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsmr_parser/clients/telegram_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _find_telegrams(self):
# - The checksum is optional '{0,4}' because not all telegram versions
# support it.
return re.findall(
r'\/[^\/]+?\![A-F0-9]{0,4}\r\n',
r'\/[^\/]+?\![A-F0-9]{0,4}\0?\r\n',
self._buffer,
re.DOTALL
)

0 comments on commit 41381f1

Please sign in to comment.