mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Added a standard header comment to all db framework and detection rule files, indicating they are part of the Detect It Easy (DiE-JS) framework and warning against unauthorized changes. This improves consistency and clarifies file purpose for maintainers.
18 lines
No EOL
611 B
Text
18 lines
No EOL
611 B
Text
// Detect It Easy: DiE-JS framework file
|
|
// Don't change anything unless you're sure about what you're doing
|
|
|
|
// Qt is tested twice - as a library and as a compiler (to distinguish C from C++). Detect it once here.
|
|
// Coauthor: sendersu
|
|
|
|
var aQt, ownName;
|
|
|
|
if (typeof aQt === "undefined" && typeof PE !== "undefined") {
|
|
ownName = PE.getFileBaseName() + "." + PE.getFileCompleteSuffix();
|
|
aQt = PE.isLibraryPresentExp(/^Qt(\d)?Core(d?)(\d)?/i);
|
|
//special case - check own name
|
|
if (!aQt) {
|
|
aQt = ownName.match(/^Qt(\d)?Core(d?)(\d)?/i)
|
|
if (aQt)
|
|
aQt[0] = ownName;
|
|
}
|
|
} |