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

Bug in version of stringcase pushed on pypi #8

Open
flou opened this issue Aug 8, 2017 · 2 comments
Open

Bug in version of stringcase pushed on pypi #8

flou opened this issue Aug 8, 2017 · 2 comments

Comments

@flou
Copy link
Contributor

flou commented Aug 8, 2017

Hello,

I think that the version of stringcase currently available on Pypi contains a bug.
The camelcase function removes more characters than needed:

$ virtualenv .venv
New python executable in /Users/flou/.venv/bin/python2.7
Also creating executable in /Users/flou/.venv/bin/python
Installing setuptools, pip, wheel...done.

$ source .venv/bin/activate
(.venv) $ pip install stringcase
Collecting stringcase
Installing collected packages: stringcase
Successfully installed stringcase-1.2.0

(.venv) $ python
Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import stringcase
>>> stringcase.camelcase('foo-bar')
'foar'
>>> stringcase.pascalcase('foo-bar')
'Foar'
@pykong
Copy link
Contributor

pykong commented Aug 8, 2017

I did not consider my PR release ready, as stated in the comments: #6

Especially since I modified the CamelCase method, as one suggestion to address #5

We need to discuss changes and the rerelease.

@lexruster
Copy link

lexruster commented Oct 27, 2021

Bug still there, 4 years later, just FYI

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

3 participants