From 24e5143590307be57b1b650739ac5d26f6cb0b99 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Sun, 5 Mar 2023 19:11:23 +0100 Subject: [PATCH] Src. Bug. Fix regular expression error. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2b51fed..d0ab599 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ fn winnow(mut list: Vec) -> (Conf, Vec ) { // Search patterns let bullet = Regex::new(r"^(\s*[\*-]\s*)").unwrap(); - let prio = Regex::new(r"^\s*[0-9]*\s*%\s*").unwrap(); + let prio = Regex::new(r"^\s*[0-9]+\s*%\s*").unwrap(); let conf = Conf { bullet: match bullet.captures(&list[0]) { -- 2.39.2