Permalink
Browse files

revert back

  • Loading branch information...
olado committed Apr 28, 2012
1 parent d99027d commit d9852c80b5ded8dafb152dd3b34bb13b4aad6dae
Showing with 8 additions and 3 deletions.
  1. +3 −1 benchmarks/templating/doT.js
  2. +3 −1 doT.js
  3. +2 −1 doT.min.js
@@ -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=');
View
4 doT.js
@@ -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=');
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit d9852c8

Please sign in to comment.