#668: Newlines and carriage returns cause erroneous matches in StringScanner ---------------------------------+------------------------------------------ Reporter: mred@… | Owner: mattaimonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Changes (by lsansonetti@…): * owner: lsansonetti@… => mattaimonetti@… * milestone: => MacRuby 1.0 Comment: Maybe the _scan method in lib/strscan.rb should compile the regexp differently. instead of {{{ headonly_pattern = Regexp.new('^' + pattern.source, pattern.options) }}} do {{{ headonly_pattern = Regexp.new('^[\n\r]+' + pattern.source, pattern.options) }}} Assigning to Matt and screening for 1.0. -- Ticket URL: <http://www.macruby.org/trac/ticket/668#comment:2> MacRuby <http://macruby.org/>