tamtamchik / namecase

PHP package that converts names into the correct case where it is possible.
https://tamtamchika.net/namecase
MIT License
77 stars 7 forks source link

Initals without space #10

Closed kowach closed 4 years ago

kowach commented 4 years ago

"J. D." leaves as it is, but "J.D." converts to "J.d."

tamtamchik commented 4 years ago

Can you please provide a full string example and the version that you use? So far I can't reproduce the issue.

peter279k commented 4 years ago

I also cannot reproduce issue, and my code snippets are as follows:

>>> use \Tamtamchik\NameCase\Formatter;
>>> Formatter::nameCase('J.D.');
=> "J.D."
>>> Formatter::nameCase('J. D.');
=> "J. D."
tamtamchik commented 4 years ago

@kowach Can you please provide an example code along with the namecase version you use?

Thanks!

kowach commented 4 years ago

I'm not sure any more. Data was in the database. I think I had "J. D." and "J.d." originally in DB and lazy mode was On (by default) so it did't changed it. It worked as documented :)

tamtamchik commented 4 years ago

Thank you for the feedback and for using namecase.