in src/wizard/integration-account/maps/mapNameStep.ts [17:31]
validateInput: async (name: string) => {
name = name ? name.trim() : "";
if (!name) {
return localize("azIntegrationAccounts.nameRequired", "A name is required.");
} else if (name.length > 80) {
return localize("azIntegrationAccounts.nameTooLong", "The name has a maximum length of 80 characters.");
} else if (!/^[0-9a-zA-Z-_.()]+$/.test(name)) {
return localize("azIntegrationAccounts.nameContainsInvalidCharacters", "The name can only contain letters, numbers, and '-', '(', ')', '_', or '.'");
} else if (!await this.isNameAvailable(name, wizardContext)) {
return localize("azIntegrationAccounts.nameAlreadyInUse", "The name is already in use.");
} else {
return undefined;
}
}