Skip to content

Commit

Permalink
fix: add global flag
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat committed Dec 19, 2023
1 parent 27369b2 commit fbc23f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/models/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit fbc23f6

Please sign in to comment.