Skip to content

Commit

Permalink
Support case-insensitive frontmatter field names
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Feb 28, 2021
1 parent 53b980b commit bdf99ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "tag-wrangler",
"name": "Tag Wrangler",
"version": "0.3.0",
"version": "0.3.1",
"minAppVersion": "0.10.13",
"description": "Rename, delete, toggle, and search tags from the tag pane",
"isDesktopOnly": true
Expand Down
3 changes: 2 additions & 1 deletion src/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export class File {
}

let changed = false;
for (const prop of ["tag", "tags"]) {
for (const {key: {value:prop}} of parsed.contents.items) {
if (!/^tags?$/i.test(prop)) continue;
const node = parsed.get(prop, true);
if (!node) continue;
const field = node.toJSON();
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"0.2.3": "0.10.11",
"0.3.0": "0.10.13"
"0.3.1": "0.10.13"
}

0 comments on commit bdf99ce

Please sign in to comment.