diff --git a/pydiffchecker/line_shift_checker.py b/pydiffchecker/line_shift_checker.py index e4644a0..c242588 100644 --- a/pydiffchecker/line_shift_checker.py +++ b/pydiffchecker/line_shift_checker.py @@ -29,7 +29,7 @@ class ShiftedLines(Sized, Iterable): class LineShiftChecker: SUBMODULE_MODE = '160000' - DIFF_BLOCK_REGEX = r'@@ -(\d+),(\d+) \+(\d+),(\d+) @@' + DIFF_BLOCK_REGEX = r'@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@' def __init__(self, revision_since: str, revision_until: str) -> None: self.revision_since = revision_since