Skip to content

Commit

Permalink
Fix #51 - Error if non-strings in frontmatter tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Sep 19, 2023
1 parent ab61146 commit 6c86ea5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Tag Wrangler",
"author": "PJ Eby",
"authorUrl": "https://github.com/pjeby",
"version": "0.5.12",
"version": "0.5.13",
"minAppVersion": "1.2.8",
"description": "Rename, merge, toggle, and search tags from the tag pane",
"isDesktopOnly": false
Expand Down
2 changes: 1 addition & 1 deletion src/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Replacement {
return tags.map((t, i) => {
if (skipOdd && (i & 1)) return t; // leave odd entries (separators) alone
// Obsidian allows spaces as separators within array elements
if (!t) return t;
if (!t || typeof t !== "string") return t;
// Skip non-tag parts
if (isAlias) {
if (!t.startsWith("#") || !Tag.isTag(t)) return t;
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"0.5.12": "1.2.8",
"0.5.13": "1.2.8",
"0.5.5": "0.15.9",
"0.5.3": "0.14.5",
"0.5.2": "0.13.19",
Expand Down

0 comments on commit 6c86ea5

Please sign in to comment.