mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
14 lines
No EOL
271 B
JavaScript
Executable file
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();
|
|
} |