Strip clippy:: prefix from search strings

This commit is contained in:
Serial 2022-05-22 15:24:47 -04:00
parent 91644d1f1d
commit 0fd03a85de

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