fix: contains fn

This commit is contained in:
Seth 2023-08-30 13:10:23 +08:00
parent 181a307bcb
commit 4ba4a751b1
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "logseq-plugin-favorite-tree",
"version": "1.0.3",
"version": "1.0.4",
"main": "dist/index.html",
"logseq": {
"id": "_sethyuan-logseq-favorite-tree",

View File

@ -185,5 +185,5 @@ function equals(prop: any, val: string) {
function contains(prop: any, val: string) {
if (!Array.isArray(prop)) return false
const lowerVal = val.toLowerCase()
return prop.some((v) => v.toLowerCase().includes(lowerVal))
return prop.some((v) => v.toLowerCase() === lowerVal)
}