Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Fix encoding of regexps for Ruby 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Stribny committed Mar 19, 2013
1 parent 40f19e2 commit b5300ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rmail/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def get_tokenize
@sym = SYM_DOMAIN_LITERAL
@lexeme = $1.gsub(/(^|[^\\])[\r\n\t ]+/, '\1').gsub(/\\(.)/, '\1')
break
when /\A[\200-\377\w!$%&\'*+\/=?^_\`{\}|~#-]+/m
when /\A[\200-\377\w!$%&\'*+\/=?^_\`{\}|~#-]+/nm
# This is just like SYM_ATOM, but includes all characters
# with high bits. This is so we can allow such tokens in
# the display name portion of an address even though it
Expand Down
2 changes: 1 addition & 1 deletion lib/rmail/header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Header

class Field # :nodoc:
# fixme, document methadology for this (RFC2822)
EXTRACT_FIELD_NAME_RE = /\A([^\x00-\x1f\x7f-\xff :]+):\s*/o
EXTRACT_FIELD_NAME_RE = /\A([^\x00-\x1f\x7f-\xff :]+):\s*/no

class << self
def parse(field)
Expand Down

0 comments on commit b5300ac

Please sign in to comment.