Skip to content

Commit

Permalink
Merge pull request #6 from hapytex/feature/underscore-as-word-separator
Browse files Browse the repository at this point in the history
underscore as word separator, fixing #5
  • Loading branch information
KommuSoft authored Jun 17, 2024
2 parents 3e0e9d8 + 90b07ff commit 2e48a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion slugify.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: slugify
version: 0.1.0.1
version: 0.1.0.2
synopsis: Convert text into slugs.
description: Convert a 'Text' object into a visually pleasant URL component.
homepage: https://github.com/hapytex/slugify#readme
Expand Down
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 2e48a4a

Please sign in to comment.