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
🦄
When you search for "pao" it did not match the word "pão" (bread in portuguese), because of the "~" (tilde) in the "a" letter.
So I modified the file "lunr.js", inside "node_modules/@cmfcmf/docusaurus-search-local/lib/":
Added the function: String.prototype.toLowerCaseNormMx = function() { return this.normalize("NFD").replace(/\p{Diacritic}/gu, "") }
Replaced every ".toLowerCase()" for "toLowerCaseNormMx()"
Result: Now I can search for "accented words" without the need for the accent.
Disclaimer: I needed a quick fix ASAP, so I did the "wrong" way. So I am posting just in case it helps anyone.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🦄
When you search for "pao" it did not match the word "pão" (bread in portuguese), because of the "~" (tilde) in the "a" letter.
So I modified the file "lunr.js", inside "node_modules/@cmfcmf/docusaurus-search-local/lib/":
Added the function:
String.prototype.toLowerCaseNormMx = function() {
return this.normalize("NFD").replace(/\p{Diacritic}/gu, "")
}
Replaced every ".toLowerCase()" for "toLowerCaseNormMx()"
Result: Now I can search for "accented words" without the need for the accent.
Disclaimer: I needed a quick fix ASAP, so I did the "wrong" way.
So I am posting just in case it helps anyone.
The text was updated successfully, but these errors were encountered: