From d430692b95b459b3706cda58e6e3b56406fab76a Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 11 Oct 2003 08:10:07 +0000 Subject: * lib/rexml/quickpath.rb (REXML::QuickPath::match): escape '[' to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/quickpath.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rexml/quickpath.rb') diff --git a/lib/rexml/quickpath.rb b/lib/rexml/quickpath.rb index 2c54ac1999..c099db8579 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 -- cgit v1.2.3