Ruby: fixed regex

Regex for EOL

http://ruby-doc.com/docs/ProgrammingRuby/html/language.html#UL