lib/utils/xml.rb in metanorma-utils-1.7.6 vs lib/utils/xml.rb in metanorma-utils-1.7.7

- old
+ new

@@ -142,8 +142,13 @@ e.text? or next e.replace(e.text.send(kase)) end x.root.children.to_xml end + + def guid_anchor?(id) + /^_[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i + .match?(id) + end end end end