HideServers: fix regex (#105)

they are trialing two very similar server lists now it looks like
This commit is contained in:
bep 2024-12-05 16:42:45 -08:00 committed by GitHub
parent ac828b2340
commit 3d2162650b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ export default definePlugin({
find: '("guildsnav")', find: '("guildsnav")',
replacement: [ replacement: [
{ {
match: /(?<=#{intl::SERVERS}\),children:.{0,300}?)(\i)(\)?\.map\(\i\))/, match: /(?<=#{intl::SERVERS}\),children:.{0,300}?)(\i)(\)?\.map\(\i\))/g,
replace: "$self.useFilteredGuilds($1)$2", replace: "$self.useFilteredGuilds($1)$2",
}, },
// despite my best efforts, the above doesnt trigger a rerender // despite my best efforts, the above doesnt trigger a rerender