context: function replaceVars(str, vars){    // replace "string $with a $variable", with    // "string " + vars["with"] + " with a " + vars["variable"]    function doReplace(symbol)    {        var name = symbol.substr(1);        if (name in vars)            return vars[name];                return "$" + name;    };        return str.replace(/(\$\w[\w\d\-]+)/g, doReplace);}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/703717eb72f3378c625c0fefe679e646d1c5b0ff/utils.js/buggy/js/lib/utils.js