Skip to content

Dev/feature#19

Merged
ShaneBeee merged 8 commits intomasterfrom
dev/feature
Mar 21, 2026
Merged

Dev/feature#19
ShaneBeee merged 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>
@ShaneBeee ShaneBeee merged commit 8a2a4e9 into master Mar 21, 2026
2 checks passed
@ShaneBeee ShaneBeee deleted the dev/feature branch March 21, 2026 02:02
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