diff options
| author | Serial <69764315+Serial-ATA@users.noreply.github.com> | 2022-05-22 15:24:47 -0400 |
|---|---|---|
| committer | Serial <69764315+Serial-ATA@users.noreply.github.com> | 2022-05-22 15:24:47 -0400 |
| commit | 0fd03a85deb7f423f4b0f869b1e9ea20bb9b748e (patch) | |
| tree | a9ebfcb2e97f18ae1f0ee7682495eb3f1b4e5140 | |
| parent | 91644d1f1d1a8029830d7c17595ec8c32b8ccde6 (diff) | |
| download | rust-0fd03a85deb7f423f4b0f869b1e9ea20bb9b748e.tar.gz rust-0fd03a85deb7f423f4b0f869b1e9ea20bb9b748e.zip | |
Strip `clippy::` prefix from search strings
| -rw-r--r-- | util/gh-pages/script.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/gh-pages/script.js b/util/gh-pages/script.js index 68e65acf9cb..6909fbcae09 100644 --- a/util/gh-pages/script.js +++ b/util/gh-pages/script.js @@ -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) { |
