lib/relaton_ietf/rfc_entry.rb in relaton-ietf-1.12.7 vs lib/relaton_ietf/rfc_entry.rb in relaton-ietf-1.12.8
- old
+ new
@@ -216,10 +216,10 @@
# @return [Array<RelatonBib::LocalizedString>]
#
def initials(int)
return [] unless int
- int.split(/\.-?\s?|\s/).map { |i| RelatonBib::LocalizedString.new i, "en", "Latn" }
+ int.split(/(?<=\.)-?\s?|\s/).map { |i| RelatonBib::LocalizedString.new i, "en", "Latn" }
end
#
# Parse document keywords
#