Skip to content

Commit

Permalink
rendering \n as a newline for Darwin-NotificationCenter implementation
Browse files Browse the repository at this point in the history
Closes #43

Signed-off-by: Joshua Appelman <jappelman@xebia.com>
  • Loading branch information
thataustin authored and Joshua Appelman committed Sep 10, 2014
1 parent cb913b5 commit 40fea33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/growl.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ function growl(msg, options, fn) {
break;
case 'Darwin-NotificationCenter':
args.push(cmd.msg);
args.push(quote(msg));
var stringifiedMsg = quote(msg);
var escapedMsg = stringifiedMsg.replace(/\\n/g, '\n');
args.push(escapedMsg);
if (options.title) {
args.push(cmd.title);
args.push(quote(options.title));
Expand Down

0 comments on commit 40fea33

Please sign in to comment.