Project

General

Profile

Bug #7533

Oniguruma hates the letter 's' :(

Added by Ian Leitch over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
ruby -v:
ruby 2.0.0dev (2012-12-08) [x86_64-darwin12.2.0]
[ruby-core:50680]

Description

MRI 2.0.0dev (2012-12-08), MRI 1.9.3-p327, Rubinius f76d3f67, JRuby 1.7.1 (1.9.3)

"s.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/i
=> nil
"t.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/i
=> 0
"s.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/
=> 0

MRI 1.8.7-p371

$KCODE
=> "NONE"
"s.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/i
=> 0
$KCODE = 'UTF8'
=> "UTF8"
"s.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/i
=> 0

Rubinius f76d3f67, JRuby 1.7.1 (1.8.7)

$KCODE
=> "NONE"
"s.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/i
=> 0
$KCODE = 'UTF8'
=> "UTF8"
"s.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/i
=> nil
"t.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/i
=> 0
"s.net" =~ /\A[\W_]+([-.][\W_]+)*.[a-z]{2,6}.?\Z/
=> 0


Related issues

Duplicated by Ruby trunk - Bug #7534: /(?i:[\W])/ and /(?i:[\w])/ both match "s" Closed 12/08/2012
Duplicates Ruby trunk - Bug #4044: Regex matching errors when using \W character class and /i option Closed

History

#1 Updated by Usaku NAKAMURA over 3 years ago

  • Category set to core
  • Status changed from Open to Assigned
  • Assignee set to Yui NARUSE
  • Target version set to 2.0.0

#2 [ruby-core:51332] Updated by Yui NARUSE over 3 years ago

  • Status changed from Assigned to Closed

Duplicated with #4044

Also available in: Atom PDF