Merge pull request #283 from wavify/tagged-ok

Pass tagged OK text code as the last argument of the callback (for APPENDUID, COPYUID, etc.)
fork
Brian White 11 years ago
commit 11b37fcd8f

@ -1389,6 +1389,7 @@ Connection.prototype._resTagged = function(info) {
});
} else {
req.cbargs.unshift(err);
req.cbargs.push(info.textCode);
req.cb && req.cb.apply(this, req.cbargs);
}

@ -309,7 +309,7 @@ function parseTextCode(text, literals) {
if (r.length === 1)
return r[0];
else
return { key: r[0], val: r[1] };
return { key: r[0], val: r.length === 2 ? r[1] : r.slice(1) };
}
function parseESearch(text, literals) {

Loading…
Cancel
Save