summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBolat Azamat <b.a.bolatuly@gmail.com>2023-11-15 22:17:09 +0600
committerGitHub <noreply@github.com>2023-11-15 09:17:09 -0700
commit7687ec87e6c9725abb5207a2a4179772145c9939 (patch)
tree999519ece04c803f908d85c211c89ae7b2f44987
parent7f3902b41f68edddbc50b01ea52c697827d8516f (diff)
fix(cli): Allow executable name start with digit (#21214)
-rw-r--r--cli/tools/installer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index dfefb74d1..eaf61e433 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<Regex> = Lazy::new(|| {
- RegexBuilder::new(r"^[a-z][\w-]*$")
+ RegexBuilder::new(r"^[a-z0-9][\w-]*$")
.case_insensitive(true)
.build()
.expect("invalid regex")