-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Slugify for Voyager - Russian map #3027
Comments
I have the same issue in the latest version of Voyager. Workaround_map_russian function in resources/assets/js/slugify.js for Russian language contains this for 'ъ', 'ь', 'Ъ', 'Ь':
So _slug += (this.chars[str.charAt(i)]) ? this.chars[str.charAt(i)] : str.charAt(i) doesn't replace those letters, and the letters are replaced later for '-' in this regexp replace(/[^a-z0-9]/g, _sep) Adding this regexp replace(/[ьЬъЪ]/g, "") solve the problem. |
fixes #3027 Co-authored-by: Christoph Schweppe <info@cschweppe.de>
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group. |
Description:
In Russian, "ь": "" and "ъ": "", but they are replaced by "-". It is not right!
Печенье = Pechene, not Pechen-e...
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: