mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
16 lines
No EOL
353 B
JavaScript
Executable file
16 lines
No EOL
353 B
JavaScript
Executable file
// Detect It Easy: detection rule file
|
|
// Author: horsicq <horsicq@gmail.com>
|
|
|
|
// https://en.wikipedia.org/wiki/HTML
|
|
meta("source", "HTML");
|
|
|
|
function detect() {
|
|
var sText = Binary.getHeaderString();
|
|
if (/^<\s*(!DOCTYPE\s+)?html\b[^>]*>/im.test(sText)) {
|
|
bDetected = true;
|
|
}
|
|
|
|
sLang = "HTM";
|
|
|
|
return result();
|
|
} |