lib/relaton_ietf/bibxml_parser.rb in relaton-ietf-1.13.3 vs lib/relaton_ietf/bibxml_parser.rb in relaton-ietf-1.13.4

- old
+ new

@@ -41,11 +41,12 @@ # def pubid_type(id) type = super case type when "BCP", "FYI", "STD", "RFC" then "RFC" - when "Internet-Draft" then type + # when "Internet-Draft" then type + when "I-D" then "Internet-Draft" else "IETF" end end # @param [RelatonBib::WorkGroup] @@ -89,16 +90,8 @@ def parse_surname_initials(author) regex = /(?:[A-Z]{1,2}(?:\.[\s-]?|\s))+/ surname = author[:surname] || author[:fullname].sub(regex, "").strip inits = author[:initials] || regex.match(author[:fullname])&.to_s&.strip [surname, inits] - end - - def parse_surname(fullname) - fullname.sub(/(?:[A-Z]{1,2}(?:\.[\s-]?|\s))+/, "").strip - end - - def parse_initials(fullname) - fullname.match(/(?:[A-Z]{1,2}(?:\.[\s-]?|\s))+/).to_s.strip end end end