From 5aa9eb4616b39b23098b8c3f749110f77c983f2b Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 23 Nov 2014 00:00:38 +0000 Subject: elementdecl.rb: suppress warnings * lib/rexml/dtd/elementdecl.rb (PATTERN_RE): comment out overridden constant, and '_' is included in '\w'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/dtd/elementdecl.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rexml/dtd') diff --git a/lib/rexml/dtd/elementdecl.rb b/lib/rexml/dtd/elementdecl.rb index a0bf641300..f90b27d761 100644 --- a/lib/rexml/dtd/elementdecl.rb +++ b/lib/rexml/dtd/elementdecl.rb @@ -4,8 +4,8 @@ module REXML class ElementDecl < Child START = "/um - PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/ + # PATTERN_RE = /^\s*(#{START}.*?)>/um + PATTERN_RE = /^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/ #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true) def initialize match -- cgit v1.2.3