lib/citeproc/names.rb in citeproc-1.0.0 vs lib/citeproc/names.rb in citeproc-1.0.1

- old
+ new

@@ -376,10 +376,11 @@ key = 'non-dropping-particle' if key == 'particle' super key end def initials_of(string) + return unless string string = string.dup string.gsub!(/([[:upper:]])[^[:upper:]\s-]*\s*/, "\\1#{initialize_with}") initialize_hyphen!(string) @@ -395,9 +396,10 @@ string.gsub!(/\s*-/, '-') end end def existing_initials_of(string) + return unless string string = string.dup string.gsub!(/([[:upper:]])([[:upper:]])/, '\1 \2') string.gsub!(/\b([[:upper:]])\b[^[:alpha:]-]*/, "\\1#{initialize_with}")