From 5be52fc8cef3140836e0663e7f13e620597cf9e7 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 17 Oct 2024 13:54:02 -0400 Subject: bad octal char in regexp --- src/server/server_Initialization.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/server_Initialization.ts b/src/server/server_Initialization.ts index 0cf9a6e58..4dcb32f8b 100644 --- a/src/server/server_Initialization.ts +++ b/src/server/server_Initialization.ts @@ -130,7 +130,7 @@ function proxyServe(req: any, requrl: string, response: any) { const htmlText = htmlInputText .toString('utf8') .replace('', ' ') - .replace(/(src|href)=(['"])(https?[^\2\n]*)\1/g, refToCors) // replace src or href='http(s)://...' or href="http(s)://.." + .replace(/(src|href)=(['"])(https?[^\n]*)\1/g, refToCors) // replace src or href='http(s)://...' or href="http(s)://.." // .replace(/= *"\/([^"]*)"/g, relpathToCors) .replace(/data-srcset="[^"]*"/g, '') .replace(/srcset="[^"]*"/g, '') -- cgit v1.2.3-70-g09d2