mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 20:25:12 -05:00
fix(cli): Allow executable name start with digit (#21214)
This commit is contained in:
parent
0d8c9f8ef1
commit
205ac412a7
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…
Add table
Reference in a new issue