mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Stop replacing toUppercCase() in build.ts
This commit is contained in:
parent
fc5219705c
commit
b143083bdd
6
build.ts
6
build.ts
@ -116,9 +116,9 @@ function postProcess(str: string): string {
|
|||||||
str = str.replaceAll(/\\n\/\/.*?(?=\\n)/g, '');
|
str = str.replaceAll(/\\n\/\/.*?(?=\\n)/g, '');
|
||||||
|
|
||||||
// Replace ${"time".toUpperCase()} with "TIME"
|
// Replace ${"time".toUpperCase()} with "TIME"
|
||||||
str = str.replaceAll(/\$\{"([^"]+)"\.toUpperCase\(\)\}/g, (match, p1) => {
|
// str = str.replaceAll(/\$\{"([^"]+)"\.toUpperCase\(\)\}/g, (match, p1) => {
|
||||||
return p1.toUpperCase();
|
// return p1.toUpperCase();
|
||||||
});
|
// });
|
||||||
|
|
||||||
// Replace " (e) =>" to " e =>"
|
// Replace " (e) =>" to " e =>"
|
||||||
// str = str.replaceAll(/ \(([^\s,.$()]+)\) =>/g, ' $1 =>');
|
// str = str.replaceAll(/ \(([^\s,.$()]+)\) =>/g, ' $1 =>');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user