From 79b1c995516781f4cf36428fd7ce0836cd4f818a Mon Sep 17 00:00:00 2001 From: Travis Leeden Date: Thu, 4 Jan 2024 16:01:12 +1000 Subject: [PATCH] Update comment --- source/Octopus.Versioning/Octopus/OctopusVersionParser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Octopus.Versioning/Octopus/OctopusVersionParser.cs b/source/Octopus.Versioning/Octopus/OctopusVersionParser.cs index 402f28b..ea51077 100644 --- a/source/Octopus.Versioning/Octopus/OctopusVersionParser.cs +++ b/source/Octopus.Versioning/Octopus/OctopusVersionParser.cs @@ -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.\-_\\]*?)?)?)?" +