Fix typos (#34)

Found via `typos --hidden --format brief`
This commit is contained in:
Kian-Meng Ang
2024-09-23 08:29:28 +00:00
committed by GitHub
parent 541bc07b6f
commit 42ebb0aec4
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -109,11 +109,11 @@ export const search = (strs, query, options) => {
}
export const searchMatcher = (textWalker, opts) => {
const { defalutLocale, matchCase, matchDiacritics, matchWholeWords } = opts
const { defaultLocale, matchCase, matchDiacritics, matchWholeWords } = opts
return function* (doc, query) {
const iter = textWalker(doc, function* (strs, makeRange) {
for (const result of search(strs, query, {
locales: doc.body.lang || doc.documentElement.lang || defalutLocale || 'en',
locales: doc.body.lang || doc.documentElement.lang || defaultLocale || 'en',
granularity: matchWholeWords ? 'word' : 'grapheme',
sensitivity: matchDiacritics && matchCase ? 'variant'
: matchDiacritics && !matchCase ? 'accent'