dynarex 1.1.36 → 1.1.37
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex.rb +1 -1
- metadata +1 -1
data/lib/dynarex.rb
CHANGED
@@ -593,7 +593,7 @@ EOF
|
|
593
593
|
last_modified = row.attributes[:last_modified] if row.attributes[:last_modified]
|
594
594
|
body = row.xpath('*').inject({}) do |r,node|
|
595
595
|
text = node.text.unescape
|
596
|
-
r.merge node.name.to_sym => (text[/^--- /] ? YAML.load(text) : text)
|
596
|
+
r.merge node.name.to_sym => (text[/^--- |^\[/] ? YAML.load(text) : text)
|
597
597
|
end
|
598
598
|
|
599
599
|
result.merge body[@default_key.to_sym] => {id: id, created: created, last_modified: last_modified, body: body}
|