Skip to content

Commit 1c9bf96

Browse files
committed
Fix website dash replacement rust-lang#12718
Searching for a lint on the website will replace all of the dashes with underscores instead of only the first one.
1 parent de4fce8 commit 1c9bf96

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)