Fix BetterRoleDot crash

This commit is contained in:
Vendicated 2023-01-11 01:24:55 +01:00
parent a772aa62f5
commit c525672777
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: EC781ADFB93EFFA3

View file

@ -41,7 +41,7 @@ export default definePlugin({
all: true,
predicate: () => Settings.plugins.BetterRoleDot.bothStyles,
replacement: {
match: /"(?:username|dot)"===\w\b/g,
match: /"(?:username|dot)"===\w(?!\.\w)/g,
replace: "true",
},
},