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 6ec72e4 commit 27369b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/models/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Organization = {

// If the new name contains bad characters
// replace them with spaces and continue creation.
const newOrgName = orgName.replace(/[:\.,<>@]/, " ");
const newOrgName = orgName.replace(/[:.,<>@]/, " ");
var slug = slugify(newOrgName, { lower: true });

const existingBySlug = await this.get({ slug });
Expand Down

0 comments on commit 27369b2

Please sign in to comment.