mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Docs: small search index improvements
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user