Skip to content

Commit

Permalink
fix backslash and single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
bgon committed Dec 21, 2024
1 parent 44d4d04 commit 81f6681
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/chunk-5QIYPGHP.js → dist/chunk-Z6HUMCJD.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var mediaAsset = class {
}
i++;
}
const sealString = textDecoder.decode(dataArray.slice(sealStart, i + 1));
const sealString = textDecoder.decode(dataArray.slice(sealStart, i + 1)).replace(/\\/gm, "");
this.seal_segments.push({ string: sealString, signature_end: i - 2 });
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/mediaasset.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ var mediaAsset = class {
}
i++;
}
const sealString = textDecoder2.decode(dataArray.slice(sealStart, i + 1));
const sealString = textDecoder2.decode(dataArray.slice(sealStart, i + 1)).replace(/\\/gm, "");
this.seal_segments.push({ string: sealString, signature_end: i - 2 });
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/mediaasset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
mediaAsset
} from "./chunk-5QIYPGHP.js";
} from "./chunk-Z6HUMCJD.js";
import "./chunk-APGEQWFO.js";
export {
mediaAsset
Expand Down
2 changes: 1 addition & 1 deletion dist/seal.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ var mediaAsset = class {
}
i++;
}
const sealString = textDecoder2.decode(dataArray.slice(sealStart, i + 1));
const sealString = textDecoder2.decode(dataArray.slice(sealStart, i + 1)).replace(/\\/gm, "");
this.seal_segments.push({ string: sealString, signature_end: i - 2 });
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/seal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
mediaAsset
} from "./chunk-5QIYPGHP.js";
} from "./chunk-Z6HUMCJD.js";
import "./chunk-APGEQWFO.js";

// src/seal.ts
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>SEAL-js</h1>
</div>
<div class="tab" style="display:block">
<pre>
<code id = "console" class="bash" >hello world</code>
<code id = "console" >hello world</code>
</pre>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function fileRead(file) {
try {
SEAL.parse(asset);
let summary = await SEAL.validateSig(asset)
status_element.innerHTML = hljs.highlight(summary.summary, { language: 'bash' }).value
status_element.innerHTML = hljs.highlight(summary.summary, { language: 'console' }).value
if (summary.result == true) {
result_element.style.display = "unset";
result_logo.src = "./static/valid.svg";
Expand Down
2 changes: 1 addition & 1 deletion src/mediaasset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class mediaAsset implements Asset {
}

// Decode the SEAL segment and add it to seal_segments
const sealString = textDecoder.decode(dataArray.slice(sealStart, i + 1));
const sealString = textDecoder.decode(dataArray.slice(sealStart, i + 1)).replace(/\\/gm, '');
this.seal_segments.push({ string: sealString, signature_end: i - 2 });
}
}
Expand Down

0 comments on commit 81f6681

Please sign in to comment.