Skip to content

Commit

Permalink
Merge pull request #72 from decaf-dev/dev
Browse files Browse the repository at this point in the history
* fix: use includes instead of contain

* chore: bump version
  • Loading branch information
decaf-dev authored Jun 11, 2024
2 parents 04ac701 + bd3aaf5 commit 2c9106e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/svelte/app/services/filters/property-groups-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 2c9106e

Please sign in to comment.