HomePhorge

Regular expression matching on symbols changed in Ruby 1.9
88281c0d7a10Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Regular expression matching on symbols changed in Ruby 1.9

In Ruby 1.8 a regular expression match on a symbol would never match, while in
Ruby 1.9 it is equivalent t a regular expression match on the equivalent
string. This is very sensible behaviour, but trips up parts of code that
expect an implicit "... but not symbol" match.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe0ca0bc8bde3: `String#to_a` doesn't work in Ruby 1.9
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU88281c0d7a10: Regular expression matching on symbols changed in Ruby 1.9 (authored by Daniel Pittman <daniel@puppetlabs.com>).Mar 30 2012, 9:15 PM