Jade\Compiler\CompilerUtils::parseValue PHP Method

parseValue() protected static method

Parse a value from its quoted string (or JSON) representation.
protected static parseValue ( string $value ) : mixed
$value string
return mixed
    protected static function parseValue($value)
    {
        return json_decode(preg_replace("/'([^']*?)'/", '"$1"', $value));
    }