]> git.g-eek.se Git - ranknauto.git/commitdiff
Src. Bug. Fix regular expression error.
authorGustav Eek <gustav.eek@fripost.org>
Sun, 5 Mar 2023 18:11:23 +0000 (19:11 +0100)
committerGustav Eek <gustav.eek@fripost.org>
Mon, 6 Mar 2023 05:51:33 +0000 (06:51 +0100)
src/main.rs

index 2b51fed66e2df089dc48a3ca22b27962ffa2dcd3..d0ab599c84b0afa5dfd9cb7295770f23ecac0d9b 100644 (file)
@@ -21,7 +21,7 @@ fn winnow(mut list: Vec<String>) -> (Conf, Vec<String> ) {
 
     // 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]) {