add default others if no match

This commit is contained in:
Alexandra
2024-10-18 03:55:59 -06:00
committed by GitHub
parent 31bdca8376
commit 81f6c169c7

View File

@@ -134,6 +134,9 @@ function findCategory(str, catList){
}
}
}
if(!foundCat){
foundCat = "Others"
}
}
return `${foundCat} ${foundSubCat}`.trim()
}