mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
28 lines
587 B
Text
28 lines
587 B
Text
// Standard result format - "type: name(version)[options]".
|
|
// If no version or options, leave them out.
|
|
|
|
includeScript("_init");
|
|
|
|
function result(bShowType,bShowVersion,bShowOptions)
|
|
{
|
|
var sResult="";
|
|
|
|
if(bDetected)
|
|
{
|
|
if(bShowType)
|
|
{
|
|
sResult+=sType+": ";
|
|
}
|
|
sResult+=sName;
|
|
if(bShowVersion&&sVersion!="")
|
|
{
|
|
sResult+="("+sVersion+")";
|
|
}
|
|
if(bShowOptions&&sOptions!="")
|
|
{
|
|
sResult+="["+sOptions+"]";
|
|
}
|
|
}
|
|
|
|
return sResult;
|
|
}
|