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

Allow uppercase_first_letter for underscore function #65

Open
abbbi opened this issue Feb 19, 2022 · 1 comment
Open

Allow uppercase_first_letter for underscore function #65

abbbi opened this issue Feb 19, 2022 · 1 comment

Comments

@abbbi
Copy link

abbbi commented Feb 19, 2022

underscore function will always alter variable assigments True/False, like so:

>>> inflection.underscore("snakeCase = True")
'snake_case = true'

i think it would make sense to have something like uppercase_first_letter here too?

@luckydonald
Copy link

Same with their examples like

camelize('active_model/errors') 
   =>    "ActiveModel::Errors"
>>> camelize('active_model/errors')
'ActiveModel/error'

I however would expect
'ActiveModel/Error' with an capital E here.

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