Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following up on #5 with something to take a look at. If the approach is acceptable perhaps it would be better to move to snake_case.ex instead since it seems like the other cases depend on that one (and update the other tests).
I tried running
mix credo --strict
andmix dialyzer
but they errorred on the main sobolevn/recase master branch as well so I don't think this PR introduces any new cod equality issues. If you're not seeing the same I can provide more details on what I'm seeing.Last thing (and perhaps this should be separate) but using Lodash's implementation as a guide, they also split up strings with digits ex you can try
_.snakeCase("ab-cD-e0-Df-GH-I1-2j-3K-45") === "ab_c_d_e_0_df_gh_i_1_2_j_3_k_45"
in the developer console in lodash.com.