chrisdoherty4 / python-case-converter

A case conversion library for Python.
MIT License
30 stars 2 forks source link

Issue with single-letter words #1

Closed Smerdokryl closed 2 years ago

Smerdokryl commented 3 years ago

For example, macrocase("FooXBar") produces "FOO_XBAR" as opposed to "FOO_X_BAR" which you would expect. snakecase("FooXBar") - "foo_xbar" instead of "foo_x_bar", respectively.

axellebot commented 2 years ago

Also have issue with abbreviation that might be related to the same problem

pascalcase("myMIB") # => produce "MyMib" instead of "MyMIB"
chrisdoherty4 commented 2 years ago

@Smerdokryl @axellebot this should be patched in 1.0.3.

They were 2 separate issues. Apologies for the 6 month delay.

chrisdoherty4 commented 2 years ago

1.0.3 had the logger turned on so I had to bump to 1.0.4. No functional changes.