From 7687ec87e6c9725abb5207a2a4179772145c9939 Mon Sep 17 00:00:00 2001 From: Bolat Azamat Date: Wed, 15 Nov 2023 22:17:09 +0600 Subject: [PATCH] fix(cli): Allow executable name start with digit (#21214) --- cli/tools/installer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index dfefb74d10..eaf61e4333 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -32,7 +32,7 @@ use std::path::PathBuf; use std::os::unix::fs::PermissionsExt; static EXEC_NAME_RE: Lazy = Lazy::new(|| { - RegexBuilder::new(r"^[a-z][\w-]*$") + RegexBuilder::new(r"^[a-z0-9][\w-]*$") .case_insensitive(true) .build() .expect("invalid regex")