diff-match-patch-python / diff-match-patch

Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.
Apache License 2.0
50 stars 8 forks source link

Invalid \d sequences in diff_match.py #4

Closed rrauenza closed 1 year ago

rrauenza commented 2 years ago

This line is invalid:

m = re.match("^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$", text[0])

Should be r"^..."

amyreese commented 1 year ago

Looks like that was fixed by formatting changes in 67421872. Thank you for reporting this!