mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
19 lines
No EOL
357 B
JavaScript
Executable file
19 lines
No EOL
357 B
JavaScript
Executable file
// Detect It Easy: detection rule file
|
|
|
|
init("source", "Pascal");
|
|
|
|
function detect() {
|
|
var sText = Binary.getHeaderString();
|
|
/* if(/^unit/im.test(sText))
|
|
{
|
|
bDetected=1;
|
|
} */
|
|
if (/^\s*program\s.*\s*uses\s/im.test(sText)) {
|
|
bDetected = true;
|
|
}
|
|
|
|
|
|
_setLang("Pascal", bDetected);
|
|
|
|
return result();
|
|
} |