support spaces in requirements regex

This commit is contained in:
Ruben Fiszel
2024-04-24 18:56:24 +02:00
parent 5d486034db
commit 96265a6f90
@@ -63,7 +63,7 @@ fn replace_import(x: String) -> String {
}
lazy_static! {
static ref RE: Regex = Regex::new(r"^\#\s?(\S+)$").unwrap();
static ref RE: Regex = Regex::new(r"^\#\s?(\S+)\s*$").unwrap();
}
fn process_import(module: Option<String>, path: &str, level: usize) -> Vec<String> {