From 3cb698cc5dcca5de0abc5b8eab0203ee90ca08a8 Mon Sep 17 00:00:00 2001 From: Hydrostic Date: Sat, 9 May 2026 11:19:50 +0800 Subject: [PATCH] fix(util): x-y case not correctly handled --- src/utils/num_sequence.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/num_sequence.rs b/src/utils/num_sequence.rs index 9666b04..bae5a89 100644 --- a/src/utils/num_sequence.rs +++ b/src/utils/num_sequence.rs @@ -22,7 +22,7 @@ impl NumberSequence { } else if let Some((start_str, end_str)) = group.split_once('-') { if let (Ok(start), Ok(end)) = (start_str.parse::(), end_str.parse::()) { - ranges.push((start, end)); + ranges.push((start, end + T::one())); } else { return None; }