@bramkortooms/sectester-scan
Version:
The package defines a simple public API to manage scans and their expectations.
11 lines • 406 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isXml = void 0;
const isXml = (text) => text.startsWith('<?xml') ||
(text.startsWith('<') &&
!text.startsWith('<!DOCTYPE html') &&
!text.startsWith('<!--') &&
(text.includes('</') || text.includes('/>')) &&
text.endsWith('>'));
exports.isXml = isXml;
//# sourceMappingURL=is-xml.js.map