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

You cannot circularly convert camel to snake #110

Open
srevenant opened this issue Nov 9, 2020 · 0 comments
Open

You cannot circularly convert camel to snake #110

srevenant opened this issue Nov 9, 2020 · 0 comments

Comments

@srevenant
Copy link

srevenant commented Nov 9, 2020

I came here because Macro has the same problem, and it's frustrating with how it's used inside Absinthe but isn't circular. I was hoping to find another lib that did it right, but...alas, this lib has the same broken functionality when you have acronyms with mulitiple cases in a row:

iex> "power1VA" |> Recase.to_snake |> Recase.to_camel
"power1Va"

What I'd expect is Recase.to_snake converts it to "power1_v_a"

Is this something this library would like to fix? I can look into the code if so.

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

1 participant