Skip to content

Commit

Permalink
Auto merge of #12719 - roddyrap:fix-website-dash-replace-12718, r=xFr…
Browse files Browse the repository at this point in the history
…ednet

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.
  • Loading branch information
bors committed May 9, 2024
2 parents 30b3b73 + 1c9bf96 commit 9abaf91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/gh-pages/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
}

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

Expand Down

0 comments on commit 9abaf91

Please sign in to comment.