fix: add global flag

This commit is contained in:
timothycarambat
2023-12-19 14:09:06 -08:00
parent 6ec72e42f1
commit 27369b2922
+1 -1
View File
@@ -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 });