diff --git a/components/ui/ModalCreation.vue b/components/ui/ModalCreation.vue index e02d3a2ea..64fe9ef15 100644 --- a/components/ui/ModalCreation.vue +++ b/components/ui/ModalCreation.vue @@ -221,7 +221,10 @@ Questions? [Join the Modrinth Discord for support!](https://discord.gg/EUHuJHt)` }, updatedName() { if (!this.manualSlug) { - this.slug = this.name.toLowerCase().replaceAll(' ', '-') + this.slug = this.name + .toLowerCase() + .replaceAll(' ', '-') + .replaceAll(/[^a-zA-Z0-9!@$()`.+,_"-]/g, '') } }, },