mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
Fix contains error (#71)
* fix: use includes instead of contain * chore: bump version
This commit is contained in:
parent
be05eea226
commit
bd3aaf5659
4 changed files with 6 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "vault-explorer",
|
||||
"name": "Vault Explorer",
|
||||
"version": "1.7.1",
|
||||
"version": "1.7.2",
|
||||
"minAppVersion": "1.4.13",
|
||||
"description": "Explore your vault in visual format",
|
||||
"author": "DecafDev",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-vault-explorer",
|
||||
"version": "1.7.1",
|
||||
"version": "1.7.2",
|
||||
"description": "Explore your vault in visual format",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -154,14 +154,14 @@ const doesListMatchFilter = (
|
|||
if (compare.length === 0) return true;
|
||||
|
||||
return compare.every((c) =>
|
||||
propertyValue.some((value) => value.contains(c))
|
||||
propertyValue.some((value) => value.includes(c))
|
||||
);
|
||||
case ListFilterCondition.DOES_NOT_CONTAIN:
|
||||
if (propertyValue === null) return matchIfNull;
|
||||
if (compare.length === 0) return true;
|
||||
|
||||
return compare.every((c) =>
|
||||
propertyValue.every((value) => !value.contains(c))
|
||||
propertyValue.every((value) => !value.includes(c))
|
||||
);
|
||||
case ListFilterCondition.EXISTS:
|
||||
return propertyValue !== null;
|
||||
|
|
|
|||
|
|
@ -55,5 +55,6 @@
|
|||
"1.6.0": "1.4.13",
|
||||
"1.6.1": "1.4.13",
|
||||
"1.7.0": "1.4.13",
|
||||
"1.7.1": "1.4.13"
|
||||
"1.7.1": "1.4.13",
|
||||
"1.7.2": "1.4.13"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue