Skip to content

Commit

Permalink
underscore as word separator, fixing #5
Browse files Browse the repository at this point in the history
  • Loading branch information
KommuSoft committed Jun 17, 2024
1 parent 3e0e9d8 commit a6158fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Text/Slugify.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ isWordSeparator '\x1d' = True
isWordSeparator '\x1f' = True
isWordSeparator '\x1e' = True
isWordSeparator '\n' = True
isWordSeparator '_' = True
isWordSeparator c = case generalCategory c of
LineSeparator -> True -- Zl
ParagraphSeparator -> True -- Zp
Expand Down

0 comments on commit a6158fb

Please sign in to comment.