bug in function camel_to_underscore
szymi- opened this issue · comments
Szymon Jasiński commented
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'
Szymon Jasiński commented
$ pip freeze | grep camel
djangorestframework-camel-case==1.2.0
Thien Le commented
The same issue
Vitaly Babiy commented
@szymi- can you please add a PR with a test case that shows this?