Skip to content

Commit

Permalink
Fix escape for windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed Mar 10, 2015
1 parent 8ef8c47 commit dda4e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.js
Expand Up @@ -124,7 +124,7 @@ var Compiler = Object.extend({
},

_templateName: function() {
return this.templateName == null? 'undefined' : '"'+this.templateName.replace(/"/g, '\\"')+'"';
return this.templateName == null? 'undefined' : JSON.stringify(this.templateName);
},

_bufferAppend: function(func) {
Expand Down

0 comments on commit dda4e84

Please sign in to comment.