node-notifier
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -8,3 +8,3 @@ var child_process = require('child_process') | ||
if (typeof str === 'string') { | ||
return str.replace(/(["'$`\\])/g, '\\$1'); | ||
return str.replace(/(["$`\\])/g, '\\$1'); | ||
} else { | ||
@@ -11,0 +11,0 @@ return str; |
{ | ||
"name": "node-notifier", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "A Node.js module for sending notifications on mac, windows and linux", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -86,3 +86,3 @@ var Notify = require('../').NotifySend | ||
it('should escape message input', function (done) { | ||
var expected = [ '"Node Notification:"', '"some \\"mess\\`age\\`\\""' ]; | ||
var expected = [ '"Node Notification:"', '"some \\"me\'ss\\`age\\`\\""' ]; | ||
@@ -99,3 +99,3 @@ utils.command = function (notifier, argsList, callback) { | ||
notifier.notify({ | ||
message: 'some "mess`age`"' | ||
message: 'some "me\'ss`age`"' | ||
}, function (err) { | ||
@@ -102,0 +102,0 @@ should.not.exist(err); |
457535