diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-08 00:11:50 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-08 00:11:50 -0400 |
commit | 24428d440592b388e8fcfdd87d953b2162eb1af5 (patch) | |
tree | 3dff116015808181fca17eac23573a75591545c9 /src/SMAPI.Web/Framework | |
parent | 51f5be1e740f8897339afbbd5916fd627c081db0 (diff) | |
download | SMAPI-24428d440592b388e8fcfdd87d953b2162eb1af5.tar.gz SMAPI-24428d440592b388e8fcfdd87d953b2162eb1af5.tar.bz2 SMAPI-24428d440592b388e8fcfdd87d953b2162eb1af5.zip |
fix duplicate semver regex
Diffstat (limited to 'src/SMAPI.Web/Framework')
-rw-r--r-- | src/SMAPI.Web/Framework/VersionConstraint.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/VersionConstraint.cs b/src/SMAPI.Web/Framework/VersionConstraint.cs index be9c0918..cffb1092 100644 --- a/src/SMAPI.Web/Framework/VersionConstraint.cs +++ b/src/SMAPI.Web/Framework/VersionConstraint.cs @@ -1,4 +1,5 @@ using Microsoft.AspNetCore.Routing.Constraints; +using StardewModdingAPI.Common; namespace StardewModdingAPI.Web.Framework { @@ -10,6 +11,6 @@ namespace StardewModdingAPI.Web.Framework *********/ /// <summary>Construct an instance.</summary> public VersionConstraint() - : base(@"^v(?>(?<major>0|[1-9]\d*))\.(?>(?<minor>0|[1-9]\d*))(?>(?:\.(?<patch>0|[1-9]\d*))?)(?:-(?<prerelease>(?>[a-z0-9]+[\-\.]?)+))?$") { } + : base(SemanticVersionImpl.Regex) { } } } |