README: "İNATÇI" to "inatçı"
hdogan opened this issue · 1 comments
hdogan commented
Shouldn't it be "İNATÇI" to "inatci"?
ausi commented
That depends on the configured valid character set:
// Default settings
generate('İNATÇI');
// Result: inatci
// Turkish lowercase alphabet and Turkish locale
generate('İNATÇI', ['locale' => 'tr', 'validChars' => 'a-pr-vyzçğıöşü']);
// Result: inatçı
Note that in the second example the I
gets lowercased to ı
instead of i
. This is a special case for Turkish.
This behavior is important if for example you want to allow all unicode characters in your slug but only lowercase ones (e.g. \p{Ll}
).