manganese_core_kit v0.1.3 Manganese.CoreKit

Link to this section Summary

Functions

Similar to Macro.underscore but with different handling of numbers in strings.

Link to this section Functions

Link to this function

underscore_key(string)

underscore_key(binary()) :: binary()

Similar to Macro.underscore but with different handling of numbers in strings.

For example, take the string "asset3d". Macro.underscore returns simply "asset3d". [underscore_key/1](#underscore_key/1) returns"asset_3d"` for consistency with the Foreverdaunt codebase when de/serializing JSON.