lib/pate.js
function evalFn(token, format_lib) {
    var splited = token.trim().split(/[\(\)]/g);

    if (splited.length < 3)
        return token;

    if (!format_lib)
        return token

    var fnstring = splited[0];
    var fnparams = splited.slice(1, splited.length - 1);
    var fn = format_lib[fnstring];

    if (typeof fn !== "function")
        return "";

    return fn.apply(null, fnparams);
}
function evalFn(token, format_lib) {
    var splited = token.trim().split(/[\(\)]/g);

    if (splited.length < 3)
        return token;

    if (!format_lib)
        return token

    var fnstring = splited[0];
    var fnparams = splited.slice(1, splited.length - 1);
    var fn = format_lib[fnstring];

    if (typeof fn !== "function")
        return "";

    return fn.apply(null, fnparams);
}
function evalFn ( token , format_lib ) { var splited = token . trim ( ) . split ( / [\(\)] / g ) ; if ( splited . length < 3 ) return token ; if ( ! format_lib ) return token var fnstring = splited [ 0 ] ; var fnparams = splited . slice ( 1 , splited . length - 1 ) ; var fn = format_lib [ fnstring ] ; if ( typeof fn !== "function" ) return "" ; return fn . apply ( null , fnparams ) ; }
Eval matcher function
Eval matcher function