Open grmmph opened 8 years ago
PS: Maybe the answer #61 which mention about the limax library will be related to this issue.
@leocaseiro This converts Arabic characters to latin characters. Not so good for seo
As far as I see it, 99% of browsers would parse this example correctly without messing up the route: If there's any reason this shouldn't be allowed, I would really like to learn why.
If you don't need transliterated URLs, go with it :-) otherwise you can use speakingurl That speakingurl is available, means not, that you have to transliterate your URLs ;-)
I would like to open a discussion for adding an option to support for non-latin characters.
That's a good point, to support non-latin characters as-is, and only replace special characters. I will add this on the todo list, thanks
Thanks @pid!
Can you think on top of your head of a Regex phrase that might do the trick?
Can you think on top of your head of a Regex phrase that might do the trick? obviously... but I will check
Perhaps something like this:
[\u0590-\u05FF\u0600-\u06FF\u0400-\u04FF\w\s\d]
This covers hebrew, arabic and Cyrillic
First of all, awesome library!
I would like to open a discussion for adding an option to support for non-latin characters. As far as I see it, 99% of browsers would parse this example correctly without messing up the route:
If there's any reason this shouldn't be allowed, I would really like to learn why.
Thanks!