mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 05:38:27 +02:00
Optimize Game slug generator by using cached RegEx
This commit is contained in:
3
build.ts
3
build.ts
@@ -100,6 +100,9 @@ const postProcess = (str: string): string => {
|
||||
});
|
||||
}
|
||||
|
||||
// Fix unicode regex in Patcher.optimizeGameSlugGenerator
|
||||
str = str.replaceAll('^\\™', '^\\\\u2122');
|
||||
|
||||
assert(str.includes('/* ADDITIONAL CODE */'));
|
||||
assert(str.includes('window.BX_EXPOSED = BxExposed'));
|
||||
assert(str.includes('window.BxEvent = BxEvent'));
|
||||
|
Reference in New Issue
Block a user