Skip to content

fix(engine): resolve refs with spaces in the name - #1

Merged
ptaranat merged 2 commits into
mainfrom
ptaranat/db-100-perhaps-refs-with-spaces-in-the-name-fail-to-resolve
Aug 27, 2026
Merged

fix(engine): resolve refs with spaces in the name#1
ptaranat merged 2 commits into
mainfrom
ptaranat/db-100-perhaps-refs-with-spaces-in-the-name-fail-to-resolve

Conversation

@ptaranat

@ptaranat ptaranat commented Aug 27, 2026

Copy link
Copy Markdown
Member

DB-100. [tavern trouble] failed as an unsupported expression even though the spec says spaces normalize to hyphens; REF_PATTERN rejected spaces before normalization ran. Found testing the Obsidian plugin against a real vault. Also refreshes the two readmes that still called the plugin unimplemented.

SPEC says spaces in names normalize to hyphens, but REF_PATTERN
rejected [tavern trouble] as an unsupported expression before
normalization ran. Let the pattern accept internal whitespace;
lookup already normalizes.

Claude-Session: https://claude.ai/code/session_01KATPWtGThR74Yseo8eWwTE

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes cross-table reference parsing so references containing spaces (e.g. [tavern trouble]) are accepted and can be resolved after normalization (spaces → hyphens), aligning behavior with the spec and real-world Obsidian vault usage.

Changes:

  • Expand the engine’s reference expression regex to permit spaces in reference names before method suffix parsing.
  • Add a regression test covering space-containing refs resolving to tables by title.
  • Update READMEs to reflect the current implemented Obsidian plugin surfaces and add the web package entry.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
README.md Updates package list to describe the Obsidian plugin features and add packages/web.
packages/obsidian/README.md Replaces “not implemented” text with current feature set and basic install instructions.
packages/engine/test/roll.test.ts Adds a regression test verifying refs with spaces resolve correctly.
packages/engine/src/roll.ts Adjusts REF_PATTERN to allow spaces in ref names prior to normalization.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptaranat
ptaranat merged commit 43b2e87 into main Aug 27, 2026
1 check passed
@ptaranat
ptaranat deleted the ptaranat/db-100-perhaps-refs-with-spaces-in-the-name-fail-to-resolve branch August 27, 2026 23:14
@macro-application

Copy link
Copy Markdown

ptaranat added a commit that referenced this pull request Aug 27, 2026
SPEC says spaces in names normalize to hyphens, but REF_PATTERN
rejected [tavern trouble] as an unsupported expression before
normalization ran. Let the pattern accept internal whitespace;
lookup already normalizes.

Also refreshes the readmes that still called the plugin
unimplemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants