lib/nameable.rb in nameable-0.4.0 vs lib/nameable.rb in nameable-0.4.1

- old
+ new

@@ -24,12 +24,12 @@ "Master" => /^\(*(master)\)*$/i, "Sir" => /^\(*(sir)\)*$/i } SUFFIX = { - "Sr." => /^\(*(sr\.|senior)\)*$/i, - "Jr." => /^\(*(jr\.|junior)\)*$/i, - "Esq." => /^\(*(esq\.|esquire)\)*$/i, + "Sr." => /^\(*(sr\.?|senior)\)*$/i, + "Jr." => /^\(*(jr\.?|junior)\)*$/i, + "Esq." => /^\(*(esq\.?|esquire)\)*$/i, "Ph.D." => /^\(*(phd\.?)\)*$/i } SUFFIX_GENERATIONAL_ROMAN = /^\(*[IVX\.]+\)*$/i SUFFIX_ACADEMIC = /^(APR|RPh|MD|MA|DMD|DDS|PharmD|EngD|DPhil|JD|DD|DO|BA|BS|BSc|BE|BFA|MA|MS|MSc|MFA|MLA|MBA)$/i