Summary
The different implementation of snake_case leads to inconsistent results
Reproduction Steps
import betterproto2
import betterproto2_compiler
print(betterproto2.casing.snake_case("M12"))
print(betterproto2_compiler.casing.snake_case("M12"))
This issue was found while using the from_dict() function.
Expected Results
or
I have no idea what is the correct transformation here, it should be consistent though
Actual Results
System Information
betterproto2 0.9.0
betterproto2-compiler 0.9.0
didn't verify on prerelease but I can see that the code hasn't been touched for casing in 4 months
Checklist