Detect-It-Easy/db/Binary/text.HTML.1.sg
2024-11-07 00:17:07 +03:00

14 lines
No EOL
278 B
JavaScript
Executable file

// Detect It Easy: detection rule file format
init("source", "HTML");
function detect() {
var sText = Binary.getHeaderString();
if (/^<(!DOCTYPE )?html/m.test(sText)) {
bDetected = true;
}
_setLang("HTML", bDetected);
return result();
}