danivek/json-api-serializer

Case conversion breaks on non-alphanumeric strings

alexzherdev opened this issue · 0 comments

The snippets to convert strings to various cases fail if the regexes within them don't match. E.g.

toSnakeCase('*')

TypeError: Cannot read property 'map' of null
      at toSnakeCase (lib/helpers.js:23:249)

PR incoming with a fix.