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 function camel_to_underscore #102

Open
szymi- opened this issue Nov 18, 2021 · 4 comments
Open

bug in function camel_to_underscore #102

szymi- opened this issue Nov 18, 2021 · 4 comments

Comments

@szymi-
Copy link

szymi- commented Nov 18, 2021

Something isn't right with camel_to_underscore function:

In [1]: from djangorestframework_camel_case.util import camel_to_underscore

In [2]: camel_to_underscore("test")
Out[2]: 'test'

In [3]: camel_to_underscore("TEST")
Out[3]: 'tes_t'

@szymi-
Copy link
Author

szymi- commented Nov 18, 2021

$ pip freeze | grep camel
djangorestframework-camel-case==1.2.0

@lemihthien
Copy link

The same issue

@vbabiy
Copy link
Owner

vbabiy commented Dec 14, 2021

@szymi- can you please add a PR with a test case that shows this?

@li-junyu
Copy link
Contributor

@vbabiy Hey! I have the same problem in my project, can I add a PR to fix it?

li-junyu added a commit to li-junyu/djangorestframework-camel-case that referenced this issue Mar 12, 2022
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

4 participants