Browse files

[refactoring] Do not trim all white space

  • Loading branch information...
1 parent 7534d89 commit 289d9134f48aa05770d3420712b7d50aa53e8f16 @ben-lin ben-lin committed Dec 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/thunder.js
View
4 lib/thunder.js
@@ -30,15 +30,15 @@
var thunder = {
- version : '0.1.11',
+ version : '0.1.12',
settings : {
open : '<?',
close : '?>'
},
compiled_text : function ( input, options ){
- input = input.replace( /\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g, '' );
+ input = input.replace( /\s*<!\[CDATA\[\s*|\s*\]\]>\s*/g, '\n' );
var arr = ( options && options.compress === true
// compress

0 comments on commit 289d913

Please sign in to comment.