Chore: consolidate regexes into a single regex

What does this MR do?

Simplifies the version detection logic in the ci/version script by combining two separate regex conditions for release and release candidate tags into a single pattern.

Why was this MR needed?

To reduce code duplication and improve maintainability of the version detection script by using a more concise regular expression that handles both standard version tags (e.g., 1.2.3) and release candidate tags (e.g., 1.2.3-rc1) with a single condition.

What's the best way to test this MR?

Verify that the script correctly identifies and outputs version information for:

  1. Standard version tags (e.g., v1.2.3)
  2. Release candidate tags (e.g., v1.2.3-rc1)
  3. Non-version tags and commits (should fall through to default behavior)

What are the relevant issue numbers?

N/A

Edited by Davis Bickford

Merge request reports

Loading