Changes onlySpaces regex to skip empty lines w/o whitespaces

Right now `onlySpaces` regex matches empty lines without whitespaces because `\s` also matches carriage returns. I changed it to skip empty lines without tabs or spaces. In my opinion, there should be at least an option to allow empty lines without whitespaces.