mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
chore: do not use single-letter tokens in search
This commit is contained in:
parent
346b10f173
commit
38ac792b85
|
@ -109,6 +109,7 @@ export async function search<Meta = string>(
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.split(/\s+/)
|
.split(/\s+/)
|
||||||
.forEach(term => {
|
.forEach(term => {
|
||||||
|
if (term.length === 1) return;
|
||||||
const exp = expandTerm(term);
|
const exp = expandTerm(term);
|
||||||
t.term(exp, {});
|
t.term(exp, {});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user