# encoding: utf-8 class String #:nodoc: CRLF = "\r\n" LF = "\n" if RUBY_VERSION >= '1.9' # This 1.9 only regex can save a reasonable amount of time (~20%) # by not matching "\r\n" so the string is returned unchanged in # the common case. CRLF_REGEX = Regexp.new("(?