소스 검색

namespace must begin with a letter

Manfred Kroehnert 11 년 전
부모
커밋
0c08c8fec3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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',