From 96265a6f90bb75f6506ae6119d0ef29e2004aa55 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 24 Apr 2024 18:56:24 +0200 Subject: [PATCH] support spaces in requirements regex --- backend/parsers/windmill-parser-py-imports/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/parsers/windmill-parser-py-imports/src/lib.rs b/backend/parsers/windmill-parser-py-imports/src/lib.rs index 16694aa705..0e796c62ab 100644 --- a/backend/parsers/windmill-parser-py-imports/src/lib.rs +++ b/backend/parsers/windmill-parser-py-imports/src/lib.rs @@ -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, path: &str, level: usize) -> Vec {