Detect-It-Easy/db/Binary/text.HTML.1.sg
2024-11-12 20:11:38 +03:00

14 lines
No EOL
271 B
JavaScript
Executable file

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