Remove unwanted strings in hash

This commit is contained in:
SamTV12345 2024-08-08 21:41:18 +02:00
parent b41284c30f
commit e17aa9af96

View file

@ -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")
)
})
}