From 98200e0b3f8cae683b213482a926666a0d3c9d9e Mon Sep 17 00:00:00 2001 From: subbi Date: Wed, 11 Feb 2015 12:31:25 +0530 Subject: [PATCH] Connection: allow append with custom flags --- lib/Connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Connection.js b/lib/Connection.js index 699b4a5..57b8338 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -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(' ') + ')';