mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 16:33:15 -03:00
check for other cases.
This commit is contained in:
@@ -125,7 +125,15 @@ function findCategory(str, catList){
|
||||
}
|
||||
}
|
||||
else{
|
||||
return 'Other'
|
||||
for(let cat in catList.Categories["Others"]){
|
||||
let catString = catList.Categories["Others"][cat]
|
||||
if(lowerStr.includes(catString.toLowerCase())){
|
||||
if(catString.length > catLength){
|
||||
foundCat = catString
|
||||
catLength = catString.length
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return `${foundCat} ${foundSubCat}`.trim()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user