Skip to content

Commit

Permalink
Add final routing tests for Catch-All query string cases
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Jan 17, 2024
1 parent 8a083f3 commit 1365f50
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ public Response<List<PlaceholderNameAndValue>> Find(string path, string query, s

for (var counterForTemplate = 0; counterForTemplate < pathTemplate.Length; counterForTemplate++)
{
if (IsPlaceholder(pathTemplate[counterForTemplate]) && CharactersDontMatch(pathTemplate[counterForTemplate], path[counterForPath]) && ContinueScanningUrl(counterForPath, path.Length))
if (IsPlaceholder(pathTemplate[counterForTemplate])
&& CharactersDontMatch(pathTemplate[counterForTemplate], path[counterForPath])
&& ContinueScanningUrl(counterForPath, path.Length))
{
//should_find_multiple_query_string make test pass
if (PassedQueryString(pathTemplate, counterForTemplate))
Expand Down
Loading

0 comments on commit 1365f50

Please sign in to comment.