Detect-It-Easy/db/PE/Python.3.sg
2024-11-12 20:11:38 +03:00

22 lines
No EOL
496 B
JavaScript
Executable file

// Detect It Easy: detection rule file
init("library", "Python"); // !!!! 🐓🐓🐓🐓🐓 !!!!
function detect() {
var aPython = PE.isLibraryPresentExp(/^python(\d)(\d+)/i);
if (aPython) {
sVersion = aPython[1] + "." + aPython[2];
bDetected = true;
}
var aPython2 = PE.isLibraryPresentExp(/^libpython(\d.\d)/i);
if (aPython2) {
sVersion = aPython2[1];
bDetected = true;
}
_setLang("Python", bDetected);
return result();
}