summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-12-31 13:15:09 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-12-31 13:15:09 +0100
commit9ec0188b7628e70ccb39b708d6500429d14f7a1d (patch)
tree233c2dba581baa76ac35c23803ba02d2a7506a69 /src/main.rs
parentb29c82da90bf3843e2a551c36cd156185794b505 (diff)
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
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<usize>) {
.range(),
);
}
- (-1, 0..input.len())
+ (-1, 0..0)
}
fn print_group(matches: &[Match]) {