Skip to content

Commit

Permalink
Fix website dash replacement #12718
Browse files Browse the repository at this point in the history
Searching for a lint on the website will replace all of the dashes with
underscores instead of only the first one.
  • Loading branch information
roddyrap committed Apr 26, 2024
1 parent de4fce8 commit 1c9bf96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/gh-pages/script.js
Expand Up @@ -406,7 +406,7 @@
}

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

Expand Down

0 comments on commit 1c9bf96

Please sign in to comment.