huminmin
9 天以前 23735b6e060d48f333d9ad91796c2cb6a42a1d9e
1
2
3
4
5
6
7
/** Check if content looks like a full page (not a component/partial) */
function isFullPage(content) {
  const stripped = content.replace(/<!--[\s\S]*?-->/g, '');
  return /<!doctype\s|<html[\s>]|<head[\s>]/i.test(stripped);
}
 
export { isFullPage };