Added more unit tests for the route matcher. Published 1.0.9 nuget package.

This commit is contained in:
2022-03-03 18:55:45 -08:00
parent da8184f152
commit 836aea0da7
3 changed files with 27 additions and 3 deletions

View File

@@ -14,7 +14,8 @@
<AssemblyName>MontoyaTech.Rest.Net</AssemblyName>
<RootNamespace>MontoyaTech.Rest.Net</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Version>1.0.8</Version>
<Version>1.0.9</Version>
<PackageReleaseNotes>Optimized and fixed bugs within the route matcher. Changed argument matching to support segments after the argument for more complex routes.</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json">

View File

@@ -133,7 +133,7 @@ namespace MontoyaTech.Rest.Net
{
break;
}
else if (condition == urlSegment)
else if (condition == urlSegment && condition != "&" && condition != "|")
{
match = true;
}