Skip to content
Open
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
5 changes: 4 additions & 1 deletion packages/string/lib/slugify.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const unidecode = require('unidecode');
const stripInvisibleChars = require('./strip-invisible-chars');

/**
* Slugify
*
Expand All @@ -15,6 +14,10 @@ module.exports = function (string, options = {}) {
// Ensure we have a string
string = string || '';

//fix for γ…Š
// this was unidecode's recommended change. It did not work:
// unidecode("γ…Š", "ch");
string = string.replaceAll(/\u314A/g,'ch');
// Strip all characters that cannot be printed
string = stripInvisibleChars(string);

Expand Down