-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
Ignore accents #181
Comments
I'd recommend adding an extra key, and using speakingurl to normalize it (remove diacritics and such) const getSlug = require('speakingurl')
// returns "Schoener Titel laesst gruessen!? Bel ete !"
let normalized = getSlug('Schöner Titel läßt grüßen!? Bel été !', {
separator: ' ',
mark: true,
uric: true,
uricNoSlash: true,
maintainCase: true
}) |
@robozevel thanks for the advice, I can indeed to this! I'd be happy to work on this and make a PR. |
actually an option to ignore any pattern would be super awesome as well |
I solved this:
but I agree it could be a parameter. I will try to contribute to this if it is in your interest. |
Definitely interesting to cover many languages. The default should be to not be accent-insensitive through to not introduce breaking changes |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Is there an option to ignore accents ?
Example:
items: [{name: "Référence"}, {name: "Dénomination}]
If I search for
reference
, it won't findRéférence
Is this already possible?
Nb: it does work if you only have those two options, but with a large amount, it doesn't.
The text was updated successfully, but these errors were encountered: