Fixed regex for line endings