Auto merge of #12719 - roddyrap:fix-website-dash-replace-12718, r=xFrednet

Fix website dash replacement

Fixes: #12718
changelog: Made clippy lints website search replace all occurrences of dashes with underscores instead of only the first one. This is in order to allow the user to search for lints with more than two words using dahses.
This commit is contained in:
bors 2024-05-09 14:38:04 +00:00
commit 9abaf91a68

View File

@ -406,7 +406,7 @@
}
// Search by id
if (lint.id.indexOf(searchStr.replace("-", "_")) !== -1) {
if (lint.id.indexOf(searchStr.replaceAll("-", "_")) !== -1) {
return true;
}