@tiptap/core 3.20.2 → 3.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2305,7 +2305,7 @@ function isNodeEmpty(node, {
2305
2305
  return true;
2306
2306
  }
2307
2307
  if (node.isText) {
2308
- return /^\s*$/m.test((_a = node.text) != null ? _a : "");
2308
+ return !/\S/.test((_a = node.text) != null ? _a : "");
2309
2309
  }
2310
2310
  }
2311
2311
  if (node.isText) {