Skip to content

Semantic Version Regex #238

@jasonmoore2k

Description

@jasonmoore2k

Currently, the Regex matches against this pattern:
@"[vV]?(?(?\d+)(.(?\d+))?(.(?\d+))?)(.(?\d+))?(-(?[^+]))?(+(?.))?"

What are your thoughts on making this configurable? Our current repository has hundred of tags used for other purposes, so I'd like to prevent GitVersion from picking up the wrong tags.

Also, when fetching the list of tags, you trim the 'v' from the name before running it through the parser. Is this necessary, if the regex contains the [vV]?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions