Project

General

Profile

Actions

Bug #11311

closed

STRING::Scan method badly interpret i option - Ruby 2.1.*

Bug #11311: STRING::Scan method badly interpret i option - Ruby 2.1.*

Added by gayahel (Agathe Begault) almost 11 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:69746]

Description

'SKYPE'.scan(/[^aeiouyAEIOUY\W]/i) #returns ["P"] instead of ["S", "K", "P"]

Tested on Ruby 2.1.3 / 2.1.5 / 2.1.6
regexp i option: case insensitive

https://github.com/ruby/ruby/blame/trunk/string.c#L7681

Actions

Also available in: PDF Atom