CB-8735: Adding link as per Ian's suggestion

This commit is contained in:
Joe Bowser 2015-03-23 15:54:05 -07:00
parent e4c9bebe34
commit 151b86cb7b

View File

@ -148,6 +148,7 @@ function copyScripts(projectPath) {
*/ */
function validatePackageName(package_name) { function validatePackageName(package_name) {
//Make the package conform to Java package types //Make the package conform to Java package types
//http://developer.android.com/guide/topics/manifest/manifest-element.html#package
//Enforce underscore limitation //Enforce underscore limitation
if (!/^[a-zA-Z][a-zA-Z0-9_]+(\.[a-zA-Z][a-zA-Z0-9_]*)+$/.test(package_name)) { if (!/^[a-zA-Z][a-zA-Z0-9_]+(\.[a-zA-Z][a-zA-Z0-9_]*)+$/.test(package_name)) {
return Q.reject('Package name must look like: com.company.Name'); return Q.reject('Package name must look like: com.company.Name');