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