fix to generalize the EOL regex
Merge pull request #28 from ardasgup/master

fix to generalize the EOL regex