Skip to content

Treat tag prefixes as literal strings - #49

Merged
ps-jay merged 2 commits into
mainfrom
fix-up-prefix-parsing
Aug 10, 2026
Merged

Treat tag prefixes as literal strings#49
ps-jay merged 2 commits into
mainfrom
fix-up-prefix-parsing

Conversation

@ps-jay

@ps-jay ps-jay commented Aug 10, 2026

Copy link
Copy Markdown
Member

Resolves: #48

Replace regex and sed prefix handling with literal Bash matching so metacharacters and delimiter characters do not select unintended tags or break lookup.

Adds regression coverage for dot and pipe-containing prefixes.

ps-jay added 2 commits August 10, 2026 15:11
Prevent regex metacharacters and sed delimiters in a tag prefix
from selecting unintended tags or causing lookup failures.

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

Updates tag-prefix handling to treat prefixes literally, resolving #48.

Changes:

  • Replaces regex/sed prefix removal with Bash literal matching.
  • Adds regression tests for dot and pipe-containing prefixes.

Reviewed changes

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

File Description
shared.sh Implements literal prefix matching and removal.
tests/test_version-lookup.bats Adds regression coverage for metacharacter prefixes.

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

@ps-jay
ps-jay merged commit 79c9fd4 into main Aug 10, 2026
8 checks passed
@ps-jay
ps-jay deleted the fix-up-prefix-parsing branch August 10, 2026 05:44
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.

Treat tag_prefix as a literal prefix

3 participants