lib/asciidoctor/gb/converter.rb in metanorma-gb-1.0.2 vs lib/asciidoctor/gb/converter.rb in metanorma-gb-1.0.3

- old
+ new

@@ -175,10 +175,10 @@ matched3 = ISO_REF_ALL_PARTS.match item [matched, matched2, matched3] end def fetch_ref(xml, code, year, **opts) - code = "GB Standard " + code if /^#{GBCODE}[^A-Za-z]/.match? code + code = "CN(#{code})" if !/^CN\(/.match(code) && /^#{GBCODE}[^A-Za-z]/.match(code) hit = @bibdb&.fetch(code, year, opts) return nil if hit.nil? xml.parent.add_child(hit.to_xml) xml rescue Algolia::AlgoliaProtocolError