From 9ec0188b7628e70ccb39b708d6500429d14f7a1d Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 31 Dec 2025 13:15:09 +0100 Subject: Fix lines that doesn't match groups All of them ended up in the same group (fine) but with a empty prefix and suffix so all of them got sorted, not shuffled. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 87fd1a4..6acee28 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,7 +104,7 @@ fn get_group(config: &Config, input: &str) -> (i64, Range) { .range(), ); } - (-1, 0..input.len()) + (-1, 0..0) } fn print_group(matches: &[Match]) { -- cgit v1.2.3-70-g09d2