Skip to content

Commit

Permalink
Fix regex to allow wildcard subdomain (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
SvyatovetsD authored Nov 27, 2020
1 parent b0517c7 commit 156f4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResourceManagement/AppService/HostNameBindingImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private string NormalizeHostNameBindingName(string hostname, string domainName)
///GENMHASH:027705B70337BE533ED77421800E496A:3479885A232C974264B5B36BDBB0BC94
public HostNameBindingImpl<FluentT, FluentImplT, DefAfterRegionT, DefAfterGroupT, UpdateT> 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)
{
Expand Down

0 comments on commit 156f4c1

Please sign in to comment.