rexle 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rexle.rb +3 -1
- metadata +1 -1
data/lib/rexle.rb
CHANGED
@@ -10,6 +10,8 @@ include REXML
|
|
10
10
|
|
11
11
|
|
12
12
|
# modifications:
|
13
|
+
# 04-Sep-2011: Bug fix: xpath will now only return Rexle:elements when
|
14
|
+
# * is used.
|
13
15
|
# 03-Sep-2011: Implemented deep_clone as well as modifying clone to function
|
14
16
|
# similar to REXML.
|
15
17
|
# 28-Au-2011: New line characters between elements are now preserved
|
@@ -220,7 +222,7 @@ class Rexle
|
|
220
222
|
else
|
221
223
|
|
222
224
|
return_elements = @child_lookup.map.with_index.select do |x|
|
223
|
-
x[0][0] == element_name or element_name == '*'
|
225
|
+
x[0][0] == element_name or (element_name == '*' && x[0].is_a?(Array))
|
224
226
|
end
|
225
227
|
|
226
228
|
end
|