Skip to content

Commit

Permalink
revert back
Browse files Browse the repository at this point in the history
  • Loading branch information
olado committed Apr 28, 2012
1 parent d99027d commit d9852c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion benchmarks/templating/doT.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
return "';" + unescape(code) + "out+='";
})
+ "';return out;")
.replace(/[\r\t\n]/g, '\\$&')
.replace(/\n/g, '\\n')
.replace(/\t/g, '\\t')
.replace(/\r/g, '\\r')
.split("out+='';").join('')
.split("var out='';out+=").join('var out=');

Expand Down
4 changes: 3 additions & 1 deletion doT.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
return "';" + unescape(code) + "out+='";
})
+ "';return out;")
.replace(/[\r\t\n]/g, '\\$&')
.replace(/\n/g, '\\n')
.replace(/\t/g, '\\t')
.replace(/\r/g, '\\r')
.split("out+='';").join('')
.split("var out='';out+=").join('var out=');

Expand Down
3 changes: 2 additions & 1 deletion doT.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9852c8

Please sign in to comment.