Explorar o código

namespace must begin with a letter

Manfred Kroehnert %!s(int64=11) %!d(string=hai) anos
pai
achega
0c08c8fec3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      template.js

+ 2 - 2
template.js

@@ -36,8 +36,8 @@ exports.template = function(grunt, init, done) {
     {
       name: 'namespace',
       message: 'Namespace of the new Amber package.',
-      validator: /^[a-z0-9\-]+$/,
-      warning: 'Only lowercase letters, number, and - are allowed in namespaces!'
+      validator: /^[a-z][a-z0-9\-]*$/,
+      warning: 'Only lowercase letters, numbers, and - are allowed in namespaces!'
     },
     {
       name: 'amber_version',