From 88a1945a112b4272d4b4bbd7ac432bd5506bbf34 Mon Sep 17 00:00:00 2001 From: schvv31n Date: Tue, 26 Nov 2024 22:13:00 +0000 Subject: [PATCH] remove the limit on input size for diff gen --- src/diff.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/diff.rs b/src/diff.rs index 02feb33..0acaf2a 100644 --- a/src/diff.rs +++ b/src/diff.rs @@ -20,13 +20,7 @@ mod r#impl { impl<'a> Diff<'a> { pub fn compute(expected: &'a str, actual: &'a str) -> Option { - if expected.len() + actual.len() > 2048 { - // We don't yet trust the dissimilar crate to work well on large - // inputs. - return None; - } - - // Nor on non-ascii inputs. + // We don't yet trust the dissimilar crate to work well on on non-ascii inputs. let diff = panic::catch_unwind(|| dissimilar::diff(expected, actual)).ok()?; let mut common_len = 0;