Detect-It-Easy/db/Binary/text.HTML.1.sg

14 lines
No EOL
274 B
JavaScript
Executable file

// Detect It Easy: detection rule file
meta("source", "HTML");
function detect() {
var sText = Binary.getHeaderString();
if (/^<\s*(!DOCTYPE\s+)?html\b[^>]*>/im.test(sText)) {
bDetected = true;
}
sLang = "HTM";
return result();
}