Skip to content

Commit 9abaf91

Browse files
committed
Auto merge of rust-lang#12719 - roddyrap:fix-website-dash-replace-12718, r=xFrednet
Fix website dash replacement Fixes: rust-lang#12718 changelog: Made clippy lints website search replace all occurrences of dashes with underscores instead of only the first one. This is in order to allow the user to search for lints with more than two words using dahses.
2 parents 30b3b73 + 1c9bf96 commit 9abaf91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/gh-pages/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
}
407407

408408
// Search by id
409-
if (lint.id.indexOf(searchStr.replace("-", "_")) !== -1) {
409+
if (lint.id.indexOf(searchStr.replaceAll("-", "_")) !== -1) {
410410
return true;
411411
}
412412

0 commit comments

Comments
 (0)