diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-10 07:07:52 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-10 07:07:52 +0000 |
commit | 133acda96ef9f8d433e60131dd3e3830ab3e2907 (patch) | |
tree | 3b1e5703a76307ca4505b3afb12c561803e88140 | |
parent | 0433b52d481cf6d10c3255cde085b3406321676b (diff) | |
download | ruby-133acda96ef9f8d433e60131dd3e3830ab3e2907.tar.gz ruby-133acda96ef9f8d433e60131dd3e3830ab3e2907.tar.xz ruby-133acda96ef9f8d433e60131dd3e3830ab3e2907.zip |
* lib/rexml/cdata.rb,lib/rexml/quickpath.rb,lib/rexml/parsers/baseparser.rb:
avoid warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/rexml/cdata.rb | 2 | ||||
-rw-r--r-- | lib/rexml/parsers/baseparser.rb | 4 | ||||
-rw-r--r-- | lib/rexml/quickpath.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/rexml/cdata.rb b/lib/rexml/cdata.rb index a5e071b37..402a0187f 100644 --- a/lib/rexml/cdata.rb +++ b/lib/rexml/cdata.rb @@ -4,7 +4,7 @@ module REXML class CData < Text START = '<![CDATA[' STOP = ']]>' - ILLEGAL = /(]]>)/ + ILLEGAL = /(\]\]>)/ # Constructor. CData is data between <![CDATA[ ... ]]> # diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index e5c2cf7d9..614bdc394 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -263,9 +263,9 @@ module REXML raise REXML::ParseException.new( "error parsing notation: no matching pattern", @source ) end return [ :notationdecl, md[1], md[2], md[3] ] - when /^\s*]\s*>/um + when /^\s*\]\s*>/um @document_status = :after_doctype - @source.match( /^\s*]\s*>/um, true ) + @source.match( /^\s*\]\s*>/um, true ) return [ :end_doctype ] end end diff --git a/lib/rexml/quickpath.rb b/lib/rexml/quickpath.rb index 2c54ac199..c099db857 100644 --- a/lib/rexml/quickpath.rb +++ b/lib/rexml/quickpath.rb @@ -31,7 +31,7 @@ module REXML results = filter([element], path) when /^\*/u results = filter(element.to_a, path) - when /^[[!\w:]/u + when /^[\[!\w:]/u # match on child matches = [] children = element.to_a |