File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ $differOptions = [
8282 'ignoreLineEnding' => false,
8383 // ignore whitespace difference
8484 'ignoreWhitespace' => false,
85+ // if the input sequence is too long, it will just gives up (especially for char-level diff)
86+ 'lengthLimit' => 2000,
8587];
8688
8789// the renderer class options
Original file line number Diff line number Diff line change 2424 'ignoreLineEnding ' => false ,
2525 // ignore whitespace difference
2626 'ignoreWhitespace ' => false ,
27+ // if the input sequence is too long, it will just gives up (especially for char-level diff)
28+ 'lengthLimit ' => 2000 ,
2729];
2830
2931// options for renderer class
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ final class Differ
111111 'ignoreLineEnding ' => false ,
112112 // ignore whitespace difference
113113 'ignoreWhitespace ' => false ,
114+ // if the input sequence is too long, it will just gives up (especially for char-level diff)
115+ 'lengthLimit ' => 2000 ,
114116 ];
115117
116118 /**
You can’t perform that action at this time.
0 commit comments