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:
Roddy Rappaport 2024-04-26 21:58:08 +03:00
parent de4fce8686
commit 1c9bf96b96

View file

@ -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;
} }