make diff block regex more general
This commit is contained in:
parent
b8f095e1a9
commit
109edc9ee5
@ -29,7 +29,7 @@ class ShiftedLines(Sized, Iterable):
|
|||||||
|
|
||||||
class LineShiftChecker:
|
class LineShiftChecker:
|
||||||
SUBMODULE_MODE = '160000'
|
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:
|
def __init__(self, revision_since: str, revision_until: str) -> None:
|
||||||
self.revision_since = revision_since
|
self.revision_since = revision_since
|
||||||
|
Loading…
Reference in New Issue
Block a user