Skip to content
Permalink
Browse files

[fix] Minimalize the subdomain checking regex.

  • Loading branch information...
Southern committed Oct 1, 2013
1 parent 68b547a commit e23ac31fde97e62432ff7b9a008cede8ccaeef1c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jitsu/package.js
@@ -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('.'),

0 comments on commit e23ac31

Please sign in to comment.
You can’t perform that action at this time.