Skip to content

Conversation

@DevelopmentCats
Copy link
Contributor

@DevelopmentCats DevelopmentCats commented Oct 24, 2025

Description

Makes the version extract and replace logic more specific so it wont replace any field that does is not specifically field under the detected modules.

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

#510

@matifali matifali requested a review from Copilot October 25, 2025 10:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves version extraction logic in the version bump script to prevent false positives when matching version fields. The changes make the pattern matching more specific by ensuring only exact version field matches are replaced, rather than matching any field containing "version" in its name.

Key changes:

  • Enhanced regex patterns to match version fields more precisely using ^[[:space:]]*version[[:space:]]*= instead of version.*=.*"
  • Added explicit field name validation with $1 == "version" check
  • Improved whitespace handling by preserving original indentation

@DevelopmentCats DevelopmentCats merged commit 925c71e into main Oct 31, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the cat/version-bump-fix branch October 31, 2025 12:45
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