0
0
Fork 0
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:
Bolat Azamat 2023-11-15 22:17:09 +06:00 committed by Yoshiya Hinosawa
parent 0d8c9f8ef1
commit 205ac412a7
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -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")