mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
Fix website dash replacement #12718
Searching for a lint on the website will replace all of the dashes with underscores instead of only the first one.
This commit is contained in:
parent
de4fce8686
commit
1c9bf96b96
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search by id
|
// Search by id
|
||||||
if (lint.id.indexOf(searchStr.replace("-", "_")) !== -1) {
|
if (lint.id.indexOf(searchStr.replaceAll("-", "_")) !== -1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue