mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +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
@ -406,7 +406,7 @@
|
||||
}
|
||||
|
||||
// Search by id
|
||||
if (lint.id.indexOf(searchStr.replace("-", "_")) !== -1) {
|
||||
if (lint.id.indexOf(searchStr.replaceAll("-", "_")) !== -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user