mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-25 00:03:52 +00:00
fix: support digit prefixed script in python
This commit is contained in:
@@ -484,6 +484,11 @@ if args["{name}"] is None:
|
||||
|
||||
let module_dir_dot = dirs.replace("/", ".").replace("-", "_");
|
||||
|
||||
let last = if last.starts_with(|x: char| x.is_ascii_digit()) {
|
||||
format!("_{}", last)
|
||||
} else {
|
||||
last
|
||||
};
|
||||
Ok((
|
||||
import_loader,
|
||||
import_base64,
|
||||
|
||||
Reference in New Issue
Block a user