You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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.
0 commit comments