Browse Source

Update validateHostname to allow wildcards

master
Tyler 3 years ago
parent
commit
8629e98d79
  1. 2
      joker/src/components/DNS.vue

2
joker/src/components/DNS.vue

@ -110,7 +110,7 @@
});
},
validateHostname: function(host) {
if (/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/.test(host)) {
if (/^(([a-zA-Z0-9\*]|[a-zA-Z0-9\*][a-zA-Z0-9\*-]*[a-zA-Z0-9\*])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/.test(host)) {
return true;
}

Loading…
Cancel
Save