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
If lower and upper case characters are separated by punctuation, decamelize should not insert an underscore as well.
To Reproduce
>>> for c in '.,<>/?;:\'"[]{}\\|`~!@#$%^&*()-_=+': ... print(f"humps.decamelize(foo{c}Bar): " + humps.decamelize(f"foo{c}Bar")) ... humps.decamelize(foo.Bar): foo._bar humps.decamelize(foo,Bar): foo,_bar humps.decamelize(foo<Bar): foo<_bar humps.decamelize(foo>Bar): foo>_bar humps.decamelize(foo/Bar): foo/_bar humps.decamelize(foo?Bar): foo?_bar humps.decamelize(foo;Bar): foo;_bar humps.decamelize(foo:Bar): foo:_bar humps.decamelize(foo'Bar): foo'_bar humps.decamelize(foo"Bar): foo"_bar humps.decamelize(foo[Bar): foo[_bar humps.decamelize(foo]Bar): foo]_bar humps.decamelize(foo{Bar): foo{_bar humps.decamelize(foo}Bar): foo}_bar humps.decamelize(foo\Bar): foo\_bar humps.decamelize(foo|Bar): foo|_bar humps.decamelize(foo`Bar): foo`_bar humps.decamelize(foo~Bar): foo~_bar humps.decamelize(foo!Bar): foo!_bar humps.decamelize(foo@Bar): foo@_bar humps.decamelize(foo#Bar): foo#_bar humps.decamelize(foo$Bar): foo$_bar humps.decamelize(foo%Bar): foo%_bar humps.decamelize(foo^Bar): foo^_bar humps.decamelize(foo&Bar): foo&_bar humps.decamelize(foo*Bar): foo*_bar humps.decamelize(foo(Bar): foo(_bar humps.decamelize(foo)Bar): foo)_bar humps.decamelize(foo-Bar): foo_-bar humps.decamelize(foo_Bar): foo__bar humps.decamelize(foo=Bar): foo=_bar humps.decamelize(foo+Bar): foo+_bar
Expected behavior No underscore should have been inserted.
Additional context pyhumps-3.5.3 on Python 3.10.2 on macOS 12.3.1 (21E258)
The text was updated successfully, but these errors were encountered:
Not sure if pyhumps is supposed to handle these cases
pyhumps
Sorry, something went wrong.
+1
No branches or pull requests
If lower and upper case characters are separated by punctuation, decamelize should not insert an underscore as well.
To Reproduce
Expected behavior
No underscore should have been inserted.
Additional context
pyhumps-3.5.3 on Python 3.10.2 on macOS 12.3.1 (21E258)
The text was updated successfully, but these errors were encountered: