Fix match pattern wildcard to not match invalid domains