Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camelize with uppercase_first_letter=True on CAPSED leads to cAPSED #36

Open
BlackHobbiT opened this issue Jul 9, 2019 · 1 comment

Comments

@BlackHobbiT
Copy link

`In [11]: camelize('GOOOD')
Out[11]: 'GOOOD'

In [12]: camelize('GOOOD', False)
Out[12]: 'gOOOD'

In [13]: camelize('GOOODbaaad', False)
Out[13]: 'gOOODbaaad'

In [14]: camelize('GOOODbaaad')
Out[14]: 'GOOODbaaad'

In [15]: camelize('GOOOD_baaad')
Out[15]: 'GOOODBaaad'

In [16]: camelize('GOOOD_baaad', False)
Out[16]: 'gOOODBaaad'`

I thin this is incorrect behaviour

@Rocamonde
Copy link

Please, see my fork in http://github.com/Rocamonde/inflection. Current version fixes this problem. Feel free to follow up on this fork and open any issues there if you find any other bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants