From: Gustav Eek Date: Sun, 5 Mar 2023 18:11:23 +0000 (+0100) Subject: Src. Bug. Fix regular expression error. X-Git-Tag: v.0.5~3 X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=24e5143590307be57b1b650739ac5d26f6cb0b99;p=ranknauto.git Src. Bug. Fix regular expression error. --- 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]) {