mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rexml/quickpath.rb: escape '[' to avoid warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b684d1926
commit
4b0115beb5
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ module REXML
|
||||||
results = filter([element], path)
|
results = filter([element], path)
|
||||||
when /^\*/u
|
when /^\*/u
|
||||||
results = filter(element.to_a, path)
|
results = filter(element.to_a, path)
|
||||||
when /^[[!\w:]/u
|
when /^[\[!\w:]/u
|
||||||
# match on child
|
# match on child
|
||||||
matches = []
|
matches = []
|
||||||
children = element.to_a
|
children = element.to_a
|
||||||
|
|
Loading…
Add table
Reference in a new issue