Skip to content

Commit 0fd03a8

Browse files
committed
Strip clippy:: prefix from search strings
1 parent 91644d1 commit 0fd03a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

util/gh-pages/script.js

+3
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@
232232
return true;
233233
}
234234
searchStr = searchStr.toLowerCase();
235+
if (searchStr.startsWith("clippy::")) {
236+
searchStr = searchStr.slice(8);
237+
}
235238

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

0 commit comments

Comments
 (0)