mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 02:30:12 +02:00
Docs: small search index improvements
This commit is contained in:
parent
b19dad69d6
commit
6dffb47973
@ -17,7 +17,7 @@ const extractKeywords = (str) =>
|
||||
str
|
||||
.split(/[ -/]/)
|
||||
.map((word) => word.toLowerCase().replace(/[^a-z]/g, ''))
|
||||
.filter((word) => word.length > 2 && !stopWords.includes(word))
|
||||
.filter((word) => word.length > 2 && word.length < 15 && !stopWords.includes(word))
|
||||
)
|
||||
].join(' ');
|
||||
|
||||
|
@ -18,7 +18,9 @@ module.exports = [
|
||||
'does',
|
||||
'each',
|
||||
'either',
|
||||
'ensure',
|
||||
'etc',
|
||||
'every',
|
||||
'for',
|
||||
'from',
|
||||
'get',
|
||||
|
Loading…
x
Reference in New Issue
Block a user