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); }