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 2222 'ignoreLineEnding ' => false ,
2323 // ignore whitespace difference
2424 'ignoreWhitespace ' => false ,
25+ // if the input sequence is too long, it will just gives up (especially for char-level diff)
26+ 'lengthLimit ' => 2000 ,
2527];
2628
2729// options for renderer class
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ final class Differ
117117 'ignoreLineEnding ' => false ,
118118 // ignore whitespace difference
119119 'ignoreWhitespace ' => false ,
120+ // if the input sequence is too long, it will just gives up (especially for char-level diff)
121+ 'lengthLimit ' => 2000 ,
120122 ];
121123
122124 /**
You can’t perform that action at this time.
0 commit comments