Skip to content

Commit 67f7cbe

Browse files
committed
lint
1 parent b423b8f commit 67f7cbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/javascript-kernel/src/executor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,10 @@ export class JavaScriptExecutor {
499499
// Check if it looks like HTML (must start with a valid tag: <div>, <p class="...">,
500500
// <!DOCTYPE>, <!-- -->, <br/>, etc.). Rejects non-HTML like "<a, b>".
501501
const trimmed = value.trim();
502-
if (/^<(?:[a-zA-Z][a-zA-Z0-9-]*[\s\/>]|!(?:DOCTYPE|--))/.test(trimmed) && trimmed.endsWith('>')) {
502+
if (
503+
/^<(?:[a-zA-Z][a-zA-Z0-9-]*[\s\/>]|!(?:DOCTYPE|--))/.test(trimmed) &&
504+
trimmed.endsWith('>')
505+
) {
503506
return {
504507
'text/html': value,
505508
'text/plain': value

0 commit comments

Comments
 (0)