We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const text = 'لماذا نعيش؟'; const print = console.log.bind(console, '>'); print('text to slug: ', text); // > لماذا نعيش؟ print('text slugged: ', slug(text)); // > undefined print('text really slugged: ', slug(text, {lowercase: false})); // > undefined
The text was updated successfully, but these errors were encountered:
This library won't parse those characters because they'er not a part of the So category of unicode characters. This library only parses characters from that category.
So
I ran into the same issue so I ended up creating my own fork, which handles your use case, since I wasn't sure what the author's intent was.
Sorry, something went wrong.
Thanks @suisha for your reply. Actually I in my case I did not like to have transliteration in URLs, so I overrided the slug generator function using this lib https://www.npmjs.com/package/arslugify and it worked for me with https://www.npmjs.com/package/mongoose-url-slugs
Thanks again!
No branches or pull requests
The text was updated successfully, but these errors were encountered: