You've already forked AstralRinth
forked from didirus/AstralRinth
Fix modal URL field autofill allowing invalid characters (#790)
Closes #785
This commit is contained in:
@@ -221,7 +221,10 @@ Questions? [Join the Modrinth Discord for support!](https://discord.gg/EUHuJHt)`
|
|||||||
},
|
},
|
||||||
updatedName() {
|
updatedName() {
|
||||||
if (!this.manualSlug) {
|
if (!this.manualSlug) {
|
||||||
this.slug = this.name.toLowerCase().replaceAll(' ', '-')
|
this.slug = this.name
|
||||||
|
.toLowerCase()
|
||||||
|
.replaceAll(' ', '-')
|
||||||
|
.replaceAll(/[^a-zA-Z0-9!@$()`.+,_"-]/g, '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user