Skip to content

Dev/feature#19

Open
ShaneBeee wants to merge 8 commits intomasterfrom
dev/feature
Open

Dev/feature#19
ShaneBeee wants to merge 8 commits intomasterfrom
dev/feature

Conversation

@ShaneBeee
Copy link
Member

Future stuff

ShaneBeee and others added 8 commits March 8, 2026 13:35
Fixes a bug where patterns with two expressions separated only by
whitespace or optional elements would fail to parse.

The issue was in ExpressionElement.java at line 135-137, where the
code incorrectly skipped processing when the next expression was the
last element in the pattern. This caused patterns like:
- "claude test %number% [of] %number%"
- "location %direction% [of] %location%"

To fail when parsing inputs like:
- "claude test 1 2"
- "location above {_loc}"

The fix removes the incorrect boundary check. When an expression is
the last element, getPossibleInputs() correctly returns the end-of-line
marker "\0", which is properly handled by the existing code.

Includes unit test (ClaudeDebugTest) that verifies both space-separated
and optional text cases work correctly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant