fix: contains fn
This commit is contained in:
parent
181a307bcb
commit
4ba4a751b1
@ -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",
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user