Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tleed5 committed Jan 4, 2024
1 parent 1324ce2 commit 79b1c99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Octopus.Versioning/Octopus/OctopusVersionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public class OctopusVersionParser
@$"\s*(?<{Prefix}>v|V)?" +
// Get the major version number
@$"\s*(?<{Major}>\d+\b)\s*" +
// Get the minor version number, delimited by a period, comma, dash or underscore
// Get the minor version number, delimited by a period
@$"(?:\.\s*(?<{Minor}>\d+\b)\s*)?" +
// Get the patch version number, delimited by a period, comma, dash or underscore
// Get the patch version number, delimited by a period
@$"(?:\.\s*(?<{Patch}>\d+\b)\s*)?" +
// Get the revision version number, delimited by a period, comma, dash or underscore
// Get the revision version number, delimited by a period
@$"(?:\.\s*(?<{Revision}>\d+\b)\s*)?)?" +
// Everything after the last digit and before the plus is the prerelease
@$"(?:[.\-_\\])?(?<{Prerelease}>(?<{PrereleasePrefix}>[A-Za-z0-9]*?)([.\-_\\](?<{PrereleaseCounter}>[A-Za-z0-9.\-_\\]*?)?)?)?" +
Expand Down

0 comments on commit 79b1c99

Please sign in to comment.