summaryrefslogtreecommitdiffstats
path: root/lib/rexml/quickpath.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-11 08:10:07 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-11 08:10:07 +0000
commite9a9f9a89be382093c2ddb2c8becb1ca40d8202c (patch)
treeb8c5199062da96bbf515307d08375512e3e81035 /lib/rexml/quickpath.rb
parentdb932bd8882fb9261631b19d0e35f2926234ba95 (diff)
downloadruby-e9a9f9a89be382093c2ddb2c8becb1ca40d8202c.tar.gz
ruby-e9a9f9a89be382093c2ddb2c8becb1ca40d8202c.tar.xz
ruby-e9a9f9a89be382093c2ddb2c8becb1ca40d8202c.zip
* lib/rexml/quickpath.rb (REXML::QuickPath::match):
escape '[' to avoid warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/quickpath.rb')
-rw-r--r--lib/rexml/quickpath.rb2
1 files changed, 1 insertions, 1 deletions
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