Project

General

Profile

Actions

Bug #3338

closed

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

Added by nobu (Nobuyoshi Nakada) almost 11 years ago. Updated about 10 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

Actions

Also available in: Atom PDF