We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d55db commit 26369acCopy full SHA for 26369ac
assets/search.js
@@ -71,7 +71,7 @@ class Search {
71
}
72
73
// ---- rendering / highlighting ----
74
- getOptimalDescription(description, query) {
+ getOptimalDescription(description, q) {
75
const regex = new RegExp(Search.escapeRegExp(q), 'i');
76
const idx = (description || '').search(regex);
77
0 commit comments