Auto merge of #8870 - Serial-ATA:issue-8865, r=xFrednet

Strip `clippy::` prefix from search strings

changelog: none
closes: #8865

r? `@xFrednet`
This commit is contained in:
bors 2022-05-23 17:29:23 +00:00
commit 3642e33015

View File

@ -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) {