node.inflection
node.inflection copied to clipboard
`underscore` doesn't translate dashes like Rails
In Rails String#underscore
translates dashes -
into _
.
Output from pry
using Rails:
[15] pry(main)> "credable-searches".underscore
=> "credable_searches"
In this library dashes keep being dashes.
Output from console calling underscore
underscore: credable-searches -> credable-searches