diff options
Diffstat (limited to 'reporter.js')
-rwxr-xr-x | reporter.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/reporter.js b/reporter.js index 83296d0..abf5746 100755 --- a/reporter.js +++ b/reporter.js @@ -149,7 +149,11 @@ let PLUGIN_INFO = }, preferences: function (file, {'-length-limit': limit}) { - function quote(str) + // TODO エスケープ処理など怪しいので調べる + function esc (str) + (typeof str === 'string' ? str.replace(/\n/g, '\\n') : str); + + function quote (str) (typeof str === 'string' ? Commands.quoteArg["'"](str) : str); function compareByName ([n1,], [n2,]) |