mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rexml: Fix a XPath bug of $variable
[Bug #14600] * lib/rexml/functions.rb: Fix a bug that "$variable" returns node instead of ndoe set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c79307c0dc
commit
d050a28f76
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ module REXML
|
||||||
|
|
||||||
when :variable
|
when :variable
|
||||||
var_name = path_stack.shift
|
var_name = path_stack.shift
|
||||||
return @variables[ var_name ]
|
return [@variables[var_name]]
|
||||||
|
|
||||||
# :and, :or, :eq, :neq, :lt, :lteq, :gt, :gteq
|
# :and, :or, :eq, :neq, :lt, :lteq, :gt, :gteq
|
||||||
# TODO: Special case for :or and :and -- not evaluate the right
|
# TODO: Special case for :or and :and -- not evaluate the right
|
||||||
|
|
Loading…
Reference in a new issue