We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import stringcase stringcase.camelcase("variable[subscript]")
produces "variablubscript]" whereas one would expect it to leave the input string unmodified and return "variable[subscript]"
"variablubscript]"
"variable[subscript]"
The text was updated successfully, but these errors were encountered:
Few examples with dash symbol as well:
In [1]: import stringcase In [2]: stringcase.camelcase('foo-bar') Out[2]: 'foar' In [3]: stringcase.camelcase('foo-bar-baz') Out[3]: 'foaaz'
Sorry, something went wrong.
And with space as well:
>>> import stringcase >>> stringcase.camelcase('Sample Text') 'samplext'
Here's a possible workaround:
stringcase.camelcase(stringcase.titlecase(k).replace(' ', ''))
Not ideal, but it seems to work.
No branches or pull requests
produces
"variablubscript]"
whereas one would expect it to leave the input string unmodified and return"variable[subscript]"
The text was updated successfully, but these errors were encountered: