mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 08:33:43 -05:00
fix(cli): Allow executable name start with digit (#21214)
This commit is contained in:
parent
7f3902b41f
commit
7687ec87e6
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue