Closed dshorthouse closed 3 years ago
From @mjy on Twitter
2.5.1 :016 > a = 'M.R. and J.D. Smith' => "M.R. and J.D. Smith" 2.5.1 :017 > b = a.gsub( /([A-Z].[A-Z].) (and) ([A-Z].[A-Z].) (.*)/ , "#{$1} #{$4} and #{$3} #{$4}") => "M.R. Smith and J.D. Smith"
Example: "M.R. and J.D. Shorthouse"
Currently parses as
[#<Name given="M.R.">, #<Name family="Shorthouse" given="J.D.">]
whereas it should be[#<Name family="Shorthouse" given="M.R.">, #<Name family="Shorthouse" given="J.D.">]