Moved 'includeScript' calls for '_runtime_helpers' and 'language' to the top of the file for better initialization order. No functional changes to logic.
Enhanced the meta function to use named parameters and provide clearer error messages for missing detection type. Added error handling in result for missing detection name. Default values are now set using String() for consistency.
Moved all prototype and helper functions from db/_init to a new db/_runtime_helpers file for better modularity and maintainability. Updated db/_init to include the new helpers script and removed duplicate code. No functional changes to detection logic.
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.
Standardized semicolon usage, improved code formatting, and enhanced readability across multiple files. Replaced direct property access with a function call in Alienyze.1.sg, and made minor logic and style improvements in chunkparsers and read. These changes improve maintainability and code quality without altering core functionality.
Updated various detection scripts to use consistent uppercase 'X' in version strings (e.g., '1.1x' to '1.1X') for standardization. Minor formatting and code cleanups were applied, including compacting switch cases, fixing indentation, and correcting return statements. Also, moved and changed permissions for CodeSafe.2.sg to db_extra/PE/CodeSafe.2.sg.
Introduces a new sLangVersion parameter to the detection initialization and result functions, allowing the version of the programming language to be specified and passed to _setLang. This enhances detection granularity for language-specific features.
Removed redundant code and unreachable returns in _FixDetects.9.sg. Updated _init to support an optional language parameter, ensuring language is set during result processing and variables are properly reset.
- image.TGA.1.sg improved against the ridiculously scary real world & is now in shorthand; the assumed charset is now explicit
- db/bytecodeparsers MUAP98 endless recursion fault fixed, tests tightened
- replaceAll added for String type in db/_init
- db/soundchips is going to be just a database of sorts
- db/bytecodeparsers created with the explicit purpose of handling bytecode parsing needed for the detections of some tougher stuff.
Has a uniform syntax.
Currently hosts MUAP98 and MXDRV parsers.
- db/_init now has Number.prototype.clamp() as in C++
_init:
- there's no reason to String() when you can just "";
- "append" String proto extension got a proper description and a more intuitive length check;
- other small stuff