rem: var n = new RegExp(nickname, "i"); var f = new RegExp(filename, "i"); 
add: var n = nickname; var f = filename; 
context: function dcc_getmatches(nickname, filename, types, dirs, states){    var k;    var list = new Array();    if (!types)        types = ["chat", "file"];    var n = new RegExp(nickname, "i");    var f = new RegExp(filename, "i");    if (arrayIndexOf(types, "chat") >= 0)    {        for (k = 0; k < this.chats.length; k++)        {            if ((!nickname || this.chats[k].user.unicodeName.match(n)) &&                (!dirs || arrayIndexOf(dirs, this.chats[k].state.dir) >= 0) &&                (!states || arrayIndexOf(states, this.chats[k].state.state) >= 0))            {                list.push(this.chats[k]);            }        }    }    if (arrayIndexOf(types, "file") >= 0)    {        for (k = 0; k < this.files.length; k++)        {            if ((!nickname || this.files[k].user.unicodeName.match(n)) &&                (!filename || this.files[k].fileName.match(f)) &&                (!dirs || arrayIndexOf(dirs, this.files[k].state.dir) >= 0) &&                (!states || arrayIndexOf(states, this.files[k].state.state) >= 0))            {                list.push(this.files[k]);            }        }    }    return list;}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/8031a769c0f2a096da12300334815a11e41bbdb4/dcc.js/buggy/js/lib/dcc.js