diff --git a/scripts/deploy.js b/scripts/deploy.js
index dee25d15346a28d1a13902c380a31401cfe9d029..dcb55bdc0b8d6880d30c914b0f4f7d5bd37f0bd5 100755
--- a/scripts/deploy.js
+++ b/scripts/deploy.js
@@ -32,7 +32,7 @@ verbs['deploy'] = function(args) {
     throw 'missing required argument: name of instance';
   }
   var name = args[0];
-  if (!/^[a-z][0-9a-z_\-]+$/.test(name)) {
+  if (!/^[a-z][0-9a-z_\-]*$/.test(name)) {
     throw "invalid name!  must be a valid dns fragment ([z-a0-9\-_])";
   }
   console.log("attempting to set up " + name + ".hacksign.in");