add helper to decode the debug hash when needed
This commit is contained in:
parent
a8e51c322b
commit
e320176d4d
|
@ -0,0 +1,10 @@
|
||||||
|
const fs = require("fs");
|
||||||
|
|
||||||
|
const file = process.argv[2];
|
||||||
|
|
||||||
|
let content = fs.readFileSync(file, "utf-8");
|
||||||
|
content = content.replace(/debug-digest-([a-f0-9]+)/g, (match, bin) => {
|
||||||
|
return Buffer.from(bin, "hex").toString("utf-8");
|
||||||
|
});
|
||||||
|
|
||||||
|
fs.writeFileSync(file, content);
|
Loading…
Reference in New Issue