Skip to content

1.1.2+1

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Dec 19:31
477f980
Handle patch release versions (#2)

## Description

- Updated the version regex pattern in `StaflVersion` class to support optional prerelease metadata in the format: `major.minor.patch+build-metadata`
- Added `.DS_Store` to `.gitignore` to exclude macOS system files from version control
- Fix lint errors

## Motivation and Context

The current version regex only supports the strict format of `major.minor.patch+build` without any additional metadata. This change allows for prerelease tags and other metadata to be included after the build number with a hyphen separator, making the versioning system more flexible.

## How Has This Been Tested?

Added a new test case `test_version_patch_release` that verifies the versioner can correctly parse and handle version strings with prerelease metadata (e.g., `1.2.3+4-dev/patch`).

## Affected components

This change is self-contained and only affects the version parsing logic. Existing implementations that use the standard version format will continue to work as before.