Project

General

Profile

Bug #7534

/(?i:[\W])/ and /(?i:[\w])/ both match "s"

Added by hasari (Hiro Asari) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-12-08 trunk 38268) [x86_64-darwin12.2.1]
Backport:
[ruby-core:50685]

Description

If you drop any of the 3 conditions - case-insensitivity, character class, or "s" - this bug does not happen.

See https://gist.github.com/4238886


Related issues

Is duplicate of Ruby master - Bug #7533: Oniguruma hates the letter 's' :(Closednaruse (Yui NARUSE)12/08/2012Actions
Is duplicate of Ruby master - Bug #4044: Regex matching errors when using \W character class and /i optionClosednaruse (Yui NARUSE)Actions

Also available in: Atom PDF