Skip to content

Commit 9abcc1c

Browse files
authored
fix: don't consider text nodes with blank lines as completely empty
1 parent 5870666 commit 9abcc1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/helpers/isNodeEmpty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function isNodeEmpty(
2525
return true
2626
}
2727
if (node.isText) {
28-
return /^\s*$/m.test(node.text ?? '')
28+
return /^\s*$/.test(node.text ?? '')
2929
}
3030
}
3131

0 commit comments

Comments
 (0)