When an organization is configured with a custom domain name, the URL matches customname.my.salesforce.com (note the "my" injected into the name). I've updated the regex so that it matches the standard xxx.salesforce.com and xxx.my.salesforce.com variants of the servername.
When an organization is configured with a custom domain name, the URL matches customname.my.salesforce.com (note the "my" injected into the name). I've updated the regex so that it matches the standard xxx.salesforce.com and xxx.my.salesforce.com variants of the servername.