diff --git a/backend/models/organization.js b/backend/models/organization.js index 861d218d..2637d549 100644 --- a/backend/models/organization.js +++ b/backend/models/organization.js @@ -17,9 +17,9 @@ const Organization = { message: "No Organization name provided.", }; - // If the new name contains bad characters + // If the new name contains bad characters // replace them with spaces and continue creation. - const newOrgName = orgName.replace(/[:.,<>@]/, " "); + const newOrgName = orgName.replace(/[:\.,<>@]/g, ' '); var slug = slugify(newOrgName, { lower: true }); const existingBySlug = await this.get({ slug });