lib/tmail/scanner_r.rb in tmail-1.2.2 vs lib/tmail/scanner_r.rb in tmail-1.2.3

- old
+ new

@@ -1,6 +1,5 @@ -# # scanner_r.rb # #-- # Copyright (c) 1998-2003 Minero Aoki <aamine@loveruby.net> # @@ -31,11 +30,11 @@ module TMail class TMailScanner - Version = '0.11.0' + Version = '1.2.3' Version.freeze MIME_HEADERS = { :CTYPE => true, :CENCODING => true, @@ -47,12 +46,12 @@ tokensyms = %q[ _#!$%&`'*+-{|}~^@. ].strip atomchars = alnum + Regexp.quote(atomsyms) tokenchars = alnum + Regexp.quote(tokensyms) iso2022str = '\e(?!\(B)..(?:[^\e]+|\e(?!\(B)..)*\e\(B' - eucstr = '(?:[\xa1-\xfe][\xa1-\xfe])+' - sjisstr = '(?:[\x81-\x9f\xe0-\xef][\x40-\x7e\x80-\xfc])+' - utf8str = '(?:[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf])+' + eucstr = "(?:[\xa1-\xfe][\xa1-\xfe])+" + sjisstr = "(?:[\x81-\x9f\xe0-\xef][\x40-\x7e\x80-\xfc])+" + utf8str = "(?:[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf])+" quoted_with_iso2022 = /\A(?:[^\\\e"]+|#{iso2022str})+/n domlit_with_iso2022 = /\A(?:[^\\\e\]]+|#{iso2022str})+/n comment_with_iso2022 = /\A(?:[^\\\e()]+|#{iso2022str})+/n \ No newline at end of file