From e17aa9af96611bc8013ed6bea2c7eecefb98cab0 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:41:18 +0200 Subject: [PATCH] Remove unwanted strings in hash --- src/node/hooks/express/specialpages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/hooks/express/specialpages.ts b/src/node/hooks/express/specialpages.ts index 5f575d942..f0d1a7fa0 100644 --- a/src/node/hooks/express/specialpages.ts +++ b/src/node/hooks/express/specialpages.ts @@ -107,7 +107,7 @@ const convertTypescript = (content: string) => { return { output, - hash: outputRaw.outputFiles[0].hash.replaceAll('/','2') + hash: outputRaw.outputFiles[0].hash.replaceAll('/','2').replaceAll("+",'5').replaceAll("^","7") } } @@ -238,7 +238,7 @@ const convertTypescriptWatched = (content: string, cb: (output:string, hash: str }).then((outputRaw) => { cb( outputRaw.outputFiles[0].text, - outputRaw.outputFiles[0].hash.replaceAll('/','2') + outputRaw.outputFiles[0].hash.replaceAll('/','2').replaceAll("+",'5').replaceAll("^","7") ) }) }