If you are tracking the cvs version of ruby1.7.2 there has been a
change in behaviour that affects many libraries. You’ll get this
warning
…/rmail/parser.rb:104: warning: string pattern instead of regexp;
metacharacters no longer effective
Generally, you can fix it by changing code from
from a quoted string to a regexp. Sometimes however
the warning is a false positive. My understanding
was that metacharacters only worked if the string
was a “single char”. You will get this warning for
strings that are multi-char but contain a .
The biggest problem I’ve run into so far is that StringBase in
rubicon seems pretty broken and my simple-minded patches don’t
fix it.
If you are tracking the cvs version of ruby1.7.2 there has been a
change in behaviour that affects many libraries. You’ll get this
warning
…/rmail/parser.rb:104: warning: string pattern instead of regexp;
metacharacters no longer effective
Generally, you can fix it by changing code from
from a quoted string to a regexp. Sometimes however
the warning is a false positive. My understanding
was that metacharacters only worked if the string
was a “single char”. You will get this warning for
strings that are multi-char but contain a .
In the past, strings longer than one char were treated as regexes:
----- Original Message -----
From: “Dave Thomas” Dave@PragmaticProgrammer.com
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Wednesday, August 07, 2002 4:24 PM
Subject: Re: Non trivial features changes in 1.7.2 via CVS
I’d look at it, but… the current CVS 1.7 doesn’t build on my Linux
box: for some reason it tries to compile Win32API…
On Thu, 8 Aug 2002 bbense+comp.lang.ruby.Aug.07.02@telemark.stanford.edu wrote:
If you are tracking the cvs version of ruby1.7.2 there has been a
change in behaviour that affects many libraries. You’ll get this
warning
…/rmail/parser.rb:104: warning: string pattern instead of regexp;
metacharacters no longer effective
Generally, you can fix it by changing code from
from a quoted string to a regexp. Sometimes however
the warning is a false positive. My understanding
was that metacharacters only worked if the string
was a “single char”. You will get this warning for
strings that are multi-char but contain a .
In the past, strings longer than one char were treated as regexes:
DOH! No wonder my patches don’t work… I am the master of
remembering things backwards.