Skip to content

Commit 300dc82

Browse files
jentfoogithub-actions[bot]
authored andcommitted
🤖 🎨 Autoformat
1 parent 573df22 commit 300dc82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/tdf3/src/utils/unwrap.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { InvalidFileError } from '../../../src/errors.js';
33

44
export function unwrapHtml(htmlPayload: Uint8Array): Uint8Array {
55
const html = new TextDecoder().decode(htmlPayload);
6-
const payloadRe = /<input\s+[^>]*id=(?:['"]?)data-input(?:['"]?)[^>]*value=(?:['"]?)([a-zA-Z0-9+/=\-_]+)(?:['"]?)/;
6+
const payloadRe =
7+
/<input\s+[^>]*id=(?:['"]?)data-input(?:['"]?)[^>]*value=(?:['"]?)([a-zA-Z0-9+/=\-_]+)(?:['"]?)/;
78
const reResult = payloadRe.exec(html);
89
if (!reResult) {
910
throw new InvalidFileError('Payload is missing');

0 commit comments

Comments
 (0)