Skip to content

Commit

Permalink
compile double quotes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Feb 27, 2017
1 parent c22553e commit 30577dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
var NEWLINE_RE = /\n/g;
var DOUBLE_QUOTE_RE = /"/g;
var BACKSLASH_RE = /\\[^n]/g;
return str.replace(NEWLINE_RE, "\\n").replace(DOUBLE_QUOTE_RE, "\\\"").replace(BACKSLASH_RE, "\\\\");
return str.replace(NEWLINE_RE, "\\n").replace(BACKSLASH_RE, "\\\\").replace(DOUBLE_QUOTE_RE, "\\\"");
};

/**
Expand Down
Loading

0 comments on commit 30577dd

Please sign in to comment.