Skip to content

Commit

Permalink
Auto merge of rust-lang#8870 - Serial-ATA:issue-8865, r=xFrednet
Browse files Browse the repository at this point in the history
Strip `clippy::` prefix from search strings

changelog: none
closes: rust-lang#8865

r? `@xFrednet`
  • Loading branch information
bors committed May 23, 2022
2 parents 91644d1 + 0fd03a8 commit 3642e33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/gh-pages/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@
return true;
}
searchStr = searchStr.toLowerCase();
if (searchStr.startsWith("clippy::")) {
searchStr = searchStr.slice(8);
}

// Search by id
if (lint.id.indexOf(searchStr.replace("-", "_")) !== -1) {
Expand Down

0 comments on commit 3642e33

Please sign in to comment.