@vaultctl/core 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tags.js +1 -1
  2. package/package.json +1 -1
package/dist/tags.js CHANGED
@@ -15,7 +15,7 @@ export function findByTag(notes, tag) {
15
15
  return allTags.includes(tag);
16
16
  });
17
17
  }
18
- const VALID_TAG_RE = /^[a-zA-Z][\w/-]*$/;
18
+ const VALID_TAG_RE = /^[a-zA-Z][\w-]*(?:\/[a-zA-Z][\w-]*)*$/;
19
19
  function validateTag(tag) {
20
20
  if (!tag || !VALID_TAG_RE.test(tag)) {
21
21
  throw new Error(`Invalid tag: "${tag}" — tags must start with a letter and contain only letters, numbers, hyphens, underscores, or slashes`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaultctl/core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Core library for structured Obsidian vault operations — frontmatter, wikilinks, tags, search, and health checks",
5
5
  "type": "module",
6
6
  "license": "MIT",