Skip to content

Commit

Permalink
fix(cli): Allow executable name start with digit (denoland#21214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolatuly committed Nov 15, 2023
1 parent 7f3902b commit 7687ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/tools/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7687ec8

Please sign in to comment.