mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Update comment to reference meta() instead of init()
Replaces a comment reference to init() with meta() to clarify the recommended function for use with _setResult in detection scripts.
This commit is contained in:
parent
b66e2d00e2
commit
d91a0393c5
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ function detect() {
|
|||
/*
|
||||
Tips for writing detection scripts:
|
||||
* If you want to detect a specific file format, use full-file signature search as a last resort (after checking magic values or if you just want to get the version when bDetected is already true)
|
||||
* Avoid using _setResult instead of init(). But you can use it as an addition to the main detection.
|
||||
* Avoid using _setResult instead of meta(). But you can use it as an addition to the main detection.
|
||||
* sVersion, sOptions, bDetected, sLang, sLangVersion, etc. are already declared with default values. You don't need to reset them at the start of the file.
|
||||
* Try to follow the code style from the main "db" directory files.
|
||||
* If you want to forcibly stop script execution, just use "return;"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue