summaryrefslogtreecommitdiffstats
path: root/lib/rexml/quickpath.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 05:03:03 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 05:03:03 +0000
commit1cfc9730191f147b32b94060c8459c1e7287c0e6 (patch)
treea60be95b9a2d7e701feee759540c423ea1df258a /lib/rexml/quickpath.rb
parent885a87955b6a398678818d40b55bd5a411750751 (diff)
downloadruby-1cfc9730191f147b32b94060c8459c1e7287c0e6.tar.gz
ruby-1cfc9730191f147b32b94060c8459c1e7287c0e6.tar.xz
ruby-1cfc9730191f147b32b94060c8459c1e7287c0e6.zip
* lib/rexml/quickpath.rb: escape '[' to avoid warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3946 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