andrewplummer/Sugar — Issue #115: [v1.2.2] String#compact() issues with tabs
Author: carlo
Created: 2012-03-07 09:46:38+00:00
State: open

There's a minor issue with `String#compact()`. When a tab (`\n`) is immediately followed by a word, the tab isn't compacted. I assume the desired output would be one space instead of the tab; either way, the actual output is inconsistent.

Examples:

```javascript
"moo\tmoo".compact()
// => "moo	moo" // whitespace: one tab
"moo \tmoo".compact()
// => "moo	moo" // whitespace: one tab
"moo \t moo".compact()
// => "moo moo" // whitespace: one space
```

Other than that, lovely library. Please keep it up. :)