aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-03-20 11:07:30 +0000
committeranekos2010-03-20 11:07:30 +0000
commit62e534e643aaff947daf23c8d48f2c50aa39bd4e (patch)
tree136130d4dd2a0f60811c2cf96d4eeb85239b6dc5
parentd6c98c3989e16523580d544600f1d0b9717deec1 (diff)
downloadvimperator-plugins-62e534e643aaff947daf23c8d48f2c50aa39bd4e.tar.bz2
改行をエスケープするように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37070 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-xreporter.js6
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,])