mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-01 10:56:42 +02:00
Optimize Game slug generator by using cached RegEx
This commit is contained in:
@@ -144,4 +144,10 @@ export const BxExposed = {
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
GameSlugRegexes: [
|
||||
/[;,/?:@&=+_`~$%#^*()!^\u2122\xae\xa9]/g,
|
||||
/ {2,}/g,
|
||||
/ /g,
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user