Skip to content

Commit

Permalink
Fix lints html escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Jul 13, 2023
1 parent 007d2b6 commit 26900d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension/index/lints.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions extension/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,10 @@ async function start() {
onSearch: (query) => {
return lintSearcher.search(query);
},
onFormat: (index, lint) => {
onFormat: (_, lint) => {
return {
content: `${LINT_URL}#${lint.name}`,
description: `Clippy lint: [${lint.level}] ${c.match(lint.name)} - ${c.dim(c.escape(lint.description))}`,
description: `Clippy lint: [${lint.level}] ${c.match(lint.name)} - ${c.dim(c.escape(c.eliminateTags(lint.description)))}`,
}
},
});
Expand Down

0 comments on commit 26900d6

Please sign in to comment.