From 156f4c102303f8203db8fc4b6adee5f95a4b5fce Mon Sep 17 00:00:00 2001 From: Dan Svyatovets <31245557+SvyatovetsD@users.noreply.github.com> Date: Fri, 27 Nov 2020 05:26:38 +0300 Subject: [PATCH] Fix regex to allow wildcard subdomain (#1167) --- src/ResourceManagement/AppService/HostNameBindingImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResourceManagement/AppService/HostNameBindingImpl.cs b/src/ResourceManagement/AppService/HostNameBindingImpl.cs index 57f2f037f..cca1d15d7 100644 --- a/src/ResourceManagement/AppService/HostNameBindingImpl.cs +++ b/src/ResourceManagement/AppService/HostNameBindingImpl.cs @@ -140,7 +140,7 @@ private string NormalizeHostNameBindingName(string hostname, string domainName) ///GENMHASH:027705B70337BE533ED77421800E496A:3479885A232C974264B5B36BDBB0BC94 public HostNameBindingImpl WithDnsRecordType(CustomHostNameDnsRecordType hostNameDnsRecordType) { - var regex = new Regex("([.\\w-]+)\\.([\\w-]+\\.\\w+)"); + var regex = new Regex("([.\\w-]+|[*])\\.([\\w-]+\\.\\w+)"); var matcher = regex.Match(name); if (hostNameDnsRecordType == CustomHostNameDnsRecordType.CName && !matcher.Success) {