Connection: allow append with custom flags

fork
subbi 10 years ago committed by Brian White
parent 50ab051651
commit 98200e0b3f

@ -323,7 +323,7 @@ Connection.prototype.append = function(data, options, cb) {
options.flags = [options.flags];
if (options.flags.length > 0) {
for (var i = 0, len = options.flags.length; i < len; ++i) {
if (options.flags[i][0] !== '\\')
if (options.flags[i][0] !== '$' && options.flags[i][0] !== '\\')
options.flags[i] = '\\' + options.flags[i];
}
cmd += ' (' + options.flags.join(' ') + ')';

Loading…
Cancel
Save