fix category check when searching for foo.bar.tld
(#863)
This commit is contained in:
parent
df8c258c84
commit
c3b7657433
|
@ -623,7 +623,7 @@ window.addEventListener('showStyles:done', function _() {
|
|||
fourth ||
|
||||
third && third !== 'www' && third !== 'm'
|
||||
);
|
||||
return (keepThird && `${third}.` || '') + main + (keepTld ? `.${tld}` : '');
|
||||
return (keepThird && `${third}.` || '') + main + (keepTld || keepThird ? `.${tld}` : '');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -632,7 +632,7 @@ window.addEventListener('showStyles:done', function _() {
|
|||
result.subcategory &&
|
||||
!processedResults.some(pr => pr.id === result.id) &&
|
||||
(category !== STYLUS_CATEGORY || /\bStylus\b/i.test(result.name + result.description)) &&
|
||||
category.split('.')[0] === result.subcategory.split('.')[0]
|
||||
category.split('.').includes(result.subcategory.split('.')[0])
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user