Project

General

Profile

Bug #3338

utf-8で全角のゼロとスラッシュが重複したキャラクタクラスと警告される

Added by nobu (Nobuyoshi Nakada) over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
r27991
Backport:
[ruby-dev:41406]

Description

=begin
1.9.2と1.9.3で出ます。1.9.1では出ません。

$ ruby -v a.rb
ruby 1.9.3dev (2010-05-12 trunk 27758) [universal.x86_64-darwin9.0]
a.rb:3: warning: character class has duplicated range: /[0/]/

$ cat a.rb
#! /usr/local/bin/ruby
# -- coding: utf-8 --
x=/[0/]/
=end

Also available in: Atom PDF