lib/uri/mailto.rb slightly wrong regexp
Looking for example of the 3rd parameter of value 'N' for Regexp.new, I noticed in lib/uri/mailto.rb
HEADER_REGEXP = Regexp.new(HEADER_PATTERN, 'N').freeze
Unless I'm mistaken, the 'N' in second position is simply a flag for case insensitivity, but HEADER_PATTERN already is, so it should either be
HEADER_REGEXP = Regexp.new(HEADER_PATTERN).freeze
HEADER_REGEXP = Regexp.new(HEADER_PATTERN, nil, 'N').freeze
but I don't know which one...
Updated by marcandre (Marc-Andre Lafortune) almost 10 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r27731.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.