(code)
return (re.search(r'^var _0x[a-f0-9]+ ?\= ?\[', code) is not None)
Detects if `code` is JavascriptObfuscator.com packed.
Detects if `code` is JavascriptObfuscator.com packed.
Detects if code is JavascriptObfuscator . com packed .
def detect(code):
    """Detects if `code` is JavascriptObfuscator.com packed."""
    # prefer `is not` idiom, so that a true boolean is returned
    return (re.search(r'^var _0x[a-f0-9]+ ?\= ?\[', code) is not None)
def detect ( code ) : # prefer `is not` idiom, so that a true boolean is returned return ( re . search ( r'^var _0x[a-f0-9]+ ?\= ?\[' , code ) is not None )