Skip to content
Browse files

Prevented backslash from getting stripped when it occurred within tex…

…t being output to a snippet
  • Loading branch information...
1 parent 2c39d04 commit a35678497d3a23bbe3c651ae316b93bda09ed91d @onecrayon committed Sep 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ScriptLibraries/handy-lib.js
View
2 ScriptLibraries/handy-lib.js
@@ -1,3 +1,3 @@
library.escSnippetChars = function(text) {
- return text.replace(/([${}`])/g, '\\$1');
+ return text.replace(/([${}`\\])/g, '\\$1');
};

0 comments on commit a356784

Please sign in to comment.
Something went wrong with that request. Please try again.