[MacRuby] #668: Newlines and carriage returns cause erroneous matches in StringScanner
MacRuby
ruby-noreply at macosforge.org
Sat Dec 4 21:51:29 PST 2010
#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/>
More information about the macruby-tickets
mailing list