From 148ca3331424527648227b610586275393e63c24 Mon Sep 17 00:00:00 2001 From: artur Date: Fri, 16 Feb 2024 18:58:59 +0300 Subject: [PATCH] Fix isValidName regex --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index ff960aa..1ba1239 100644 --- a/src/index.js +++ b/src/index.js @@ -447,7 +447,7 @@ function digest(algo, data) { } function isValidName(name) { - const REGEX = /^[a-z0-9_-.]{2,128}$/; + const REGEX = /^[a-z0-9_\-.]{2,128}$/; return REGEX.test(name); }