Skip to content

Conversation

@tze088
Copy link

@tze088 tze088 commented Oct 30, 2025

Fixes #226

When parsing using ArgmentTokenizer.tokenize(), a Prefix can be designated as unique by calling .once(). For example, tokenize(argString, PREFIX_DESCRIPTION.once()).
This means that there should only be one ocurrence of this prefix in the input, meaning that:

  • Adjacent duplicate prefixes are ignored, and the first occurrence is taken as the start of the argument. For example, d/description d/ will parse as description d/
  • If there are two duplicate prefixes split in the middle by another specified prefix, then duplicate arguments will be generated. For example, d/1 e/1 d/2 will create 2 arguments for d/.
    • Therefore, duplicate prefixes should still be checked for.

@tze088 tze088 self-assigned this Oct 30, 2025
@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tze088 tze088 marked this pull request as draft November 2, 2025 14:58
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.

Add-event command do not accept description with " d/" inside

1 participant