Detect-It-Easy/db/PDF/HeaderComment.2.sg
DosX d27c3df749 Refactor string emptiness checks to truthy checks
Replaces explicit string emptiness comparisons (e.g., `if (x != "")`) with truthy checks (e.g., `if (x)`) throughout detection scripts. This improves code readability and consistency across multiple file format detection modules.
2025-08-09 16:21:28 +03:00

10 lines
243 B
JavaScript

// Detect It Easy: detection rule file
init("format", "pdf");
function detect() {
var sHeaderComment = PDF.getHeaderCommentAsHex();
if (sHeaderComment) {
_setResult("complier", "HeaderComment", sHeaderComment, "");
}
}