blob: 1502f5d87a5df9ec7696a3fec0b3e5ffb75028c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using Microsoft.AspNetCore.Routing.Constraints;
using StardewModdingAPI.Internal;
namespace StardewModdingAPI.Web.Framework
{
/// <summary>Constrains a route value to a valid semantic version.</summary>
internal class VersionConstraint : RegexRouteConstraint
{
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
public VersionConstraint()
: base(SemanticVersionImpl.Regex) { }
}
}
|