rexleparser 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rexleparser.rb +1 -1
- metadata +1 -1
data/lib/rexleparser.rb
CHANGED
@@ -56,7 +56,7 @@ class RexleParser
|
|
56
56
|
|
57
57
|
if children == true then
|
58
58
|
|
59
|
-
(r = scan_element(a);
|
59
|
+
(r = scan_element(a); element << r if r) until (a[0, name.length + 3].join == "</%s>" % [name]) or a.length < 2
|
60
60
|
a.slice!(0, name.length + 3) if a[0, name.length + 3].join == "</%s>" % name
|
61
61
|
a.shift until a[0] == '<' or a.length <= 1
|
62
62
|
else
|