diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-23 00:00:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-23 00:00:38 +0000 |
commit | 5aa9eb4616b39b23098b8c3f749110f77c983f2b (patch) | |
tree | e750cc9668d4a7995a9ef60b2634e4aa1483dde3 | |
parent | 237162a3b163e011b15162c7aa2b82458484957b (diff) | |
download | ruby-5aa9eb4616b39b23098b8c3f749110f77c983f2b.tar.gz |
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
-rw-r--r-- | lib/rexml/dtd/elementdecl.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 = "<!ELEMENT" START_RE = /^\s*#{START}/um - PATTERN_RE = /^\s*(#{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 |