Skip to content

Commit

Permalink
Don’t split on digits when provided :symbol as delim.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Matiushkin committed Feb 14, 2019
1 parent e1a7bd4 commit fa24209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/recase/cases/generic.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ defmodule Recase.Generic do
list

:symbol ->
[all, down, up] = Enum.map([32..127, ?a..?z, ?A..?Z], &Enum.to_list/1)
all -- (down ++ up)
[all, digits, down, up] =
Enum.map([32..127, ?0..?9, ?a..?z, ?A..?Z], &Enum.to_list/1)

all -- (digits ++ down ++ up)
end)

@doc """
Expand Down

0 comments on commit fa24209

Please sign in to comment.