Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: "İNATÇI" to "inatçı" #2

Open
hdogan opened this issue Nov 3, 2017 · 1 comment
Open

README: "İNATÇI" to "inatçı" #2

hdogan opened this issue Nov 3, 2017 · 1 comment
Labels

Comments

@hdogan
Copy link

hdogan commented Nov 3, 2017

Shouldn't it be "İNATÇI" to "inatci"?

@ausi
Copy link
Owner

ausi commented Nov 3, 2017

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}).

@ausi ausi added the question label Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants