Skip to content

Commit

Permalink
[fix] Minimalize the subdomain checking regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
Southern committed Oct 1, 2013
1 parent 68b547a commit e23ac31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jitsu/package.js
Expand Up @@ -567,7 +567,7 @@ package.properties = function (dir) {
' character and unicode characters may be used that are supported under\n'+
' punycode.',
validator: function(s){
var reValidSubdomain = /^[a-zA-Z]$|^[a-zA-Z][a-zA-Z\d]$|^[a-zA-Z][\w\-]{1,61}[a-zA-Z\d]$/;
var reValidSubdomain = /^[a-z][\w\-]{1,61}\w$/i;
if(s.indexOf('.') !== -1) { // We will support multiple level subdomains this for now warn user...
jitsu.log.warn("**WARNING** Do not use multiple level subdomains, they will be going away soon!");
var subdomainNames = s.split('.'),
Expand Down

0 comments on commit e23ac31

Please sign in to comment.