mirror of
https://github.com/Mintplex-Labs/vector-admin.git
synced 2026-07-19 21:23:38 -04:00
fix: add global flag
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user