ggarek/brackets-extension-alignit — pull request #1 by fuzetsu (2013-11-13 07:50:37+00:00)
Title: Fixed case where align would fail on last line

Previously trying use the alignment feature on the last line deleted the last line.

Just something I noticed while using your extension. Figured I might as well send my fix along.

The problem was that the `String.match` in your `align` function wasn't accounting for the fact that the last line in the file won't have a new line after it.

I didn't want to change too much of your code so I tried to keep the changes minimal, resulting in not the cleanest fix, but it works.