Skip to content

Commit

Permalink
[refactoring] \n\r -> \r\n
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-lin committed Dec 19, 2013
1 parent d804bc7 commit ab697c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/thunder.js
Expand Up @@ -30,7 +30,7 @@

var thunder = {

version : '0.1.12',
version : '0.1.13',

settings : {
open : '<?',
Expand All @@ -42,9 +42,9 @@

var arr = ( options && options.compress === true
// compress
? input.replace( /\n\r\t|\s+/g, ' ' )
? input.replace( /\r\n\t|\s+/g, ' ' )
// chage the new line to unix version
: input.replace( /\n\r|\r/g, '\n' )
: input.replace( /\r\n|\r/g, '\n' )
)
.split( thunder.settings.open )
.join( thunder.settings.close + '\x1b' )
Expand Down

0 comments on commit ab697c3

Please sign in to comment.