Project

General

Profile

Actions

Bug #14539

closed

Duplicate range in character class warning

Added by Anonymous about 6 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
>= 2.5.0
[ruby-core:85737]

Description

#!/usr/bin/env ruby -w
puts RUBY_VERSION
puts "👍".match?(/\X/).inspect
puts '--------------'
2.4.3
true
--------------
2.5.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------
2.6.0
grapheme_warning.rb:3: warning: character class has duplicated range: /\X/
true
--------------

I don't think there's a duplicate range here, so there should not be a warning.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0