Skip to content
Browse files

[refactoring] `\n\r` -> `\r\n`

  • Loading branch information...
1 parent d804bc7 commit ab697c326d530f112af452a6f8eba492459b41b0 @ben-lin ben-lin committed Dec 18, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/thunder.js
View
6 lib/thunder.js
@@ -30,7 +30,7 @@
var thunder = {
- version : '0.1.12',
+ version : '0.1.13',
settings : {
open : '<?',
@@ -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' )

0 comments on commit ab697c3

Please sign in to comment.
Something went wrong with that request. Please try again.