mafintosh / ignore-file

Compile an ignore file (similar to .gitignore) to a Javascript function
MIT License
12 stars 2 forks source link

Show that \r\n based line-endings also work. #2

Closed indexzero closed 8 years ago

indexzero commented 8 years ago

In reading the code I learned something about JavaScript: String.prototype.trim will remove line-endings like \r. To learn this I wrote what I thought would be a failing test, but it wasn't!

So ... here's test coverage for \r\n based line endings.

mafintosh commented 8 years ago

Love more tests! :)