Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ Contributors
- Arin Aeruva, `arin30@github <https://github.com/arin30>`_
- Cyber Marty, `Cyber-Marty@github <https://github.com/Cyber-Marty>`_
- Rajatendu Dey, `Rajatendu1@github <https://github.com/Rajatendu1>`_
- Jay Hemnani, `jayhemnani9910@github <https://github.com/jayhemnani9910>`_
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Changelog
Unreleased
----------

- Transliterate letters like ``ß``, ``æ``, ``ø`` and ``Ł`` in ``slugify`` through ``deburr`` instead of
dropping them.
- Search values in generic mappings with ``includes`` and respect the start offset.
- Support ``range`` objects in ``index_of``, including when a start index is supplied.
- Merge nested mutable mappings in place instead of replacing their existing contents, including
Expand Down
2 changes: 1 addition & 1 deletion src/pydash/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@ def slugify(text: t.Any, separator: str = "-") -> str:
Remove single quotes from output.
"""
normalized = (
unicodedata.normalize("NFKD", pyd.to_string(text))
unicodedata.normalize("NFKD", deburr(pyd.to_string(text)))
.encode("ascii", "ignore")
.decode("utf8")
.replace("'", "")
Expand Down
1 change: 1 addition & 0 deletions tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ def test_series_phrase_serial(case, expected):
(" foo bar ", "foo-bar"),
("Un éléphant à l'orée du bois", "un-elephant-a-loree-du-bois"),
("shouldn't couldn't wouldn't", "shouldnt-couldnt-wouldnt"),
("Ærøskøbing Straße", "aeroskobing-strasse"),
("", ""),
(5, "5"),
(None, ""),
Expand Down