Project

General

Profile

Actions

Backport #7972

closed

Regex Posix space class seems location-sensitive in Ruby 2.0.0-p0

Added by jdashton (J Daniel Ashton) over 11 years ago. Updated over 11 years ago.


Description

This regex

/[^[:space:]\d\-,\.]/ 

matches as expected in 1.9.3. But in 2.0.0-p0 this regex fails to match unless the space class is moved later in the class. For example, both of the following work as expected:

/[^\d[:space:]\-,\.]/
/[^\d\-,\.[:space:]]/

See http://stackoverflow.com/questions/15076507/regex-slightly-different-in-ruby-2/

Updated by naruse (Yui NARUSE) over 11 years ago

  • Status changed from Open to Closed

Fixed at r39547, thanks!

Actions #2

Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport200
  • Status changed from Closed to Assigned
  • Assignee set to nagachika (Tomoyuki Chikanaga)
Actions #3

Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39953.
J Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39547: [Backport #7972] [Backport #7974]

* Merge Onigmo 0fe387da2fee089254f6b04990541c731a26757f
  v5.13.3 [Bug#7972] [Bug#7974]
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0