Fix contains error (#71)

* fix: use includes instead of contain

* chore: bump version
This commit is contained in:
DecafDev 2024-06-11 12:21:03 -06:00 committed by GitHub
parent be05eea226
commit bd3aaf5659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -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",

View file

@ -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": {

View file

@ -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;

View file

@ -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"
}