Skip to content

Commit

Permalink
Fix for Mangopay#217
Browse files Browse the repository at this point in the history
  • Loading branch information
tmitchel2 committed Mar 1, 2024
1 parent 2164b5f commit 180d4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MangoPay.SDK/Core/APIs/ApiIdempotent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ private void LoadResourceObject(IdempotencyResponseDTO response)
foreach (var mapItem in map)
{
var endPoint = GetApiEndPoint(mapItem.Key);
endPoint.SetParameters(new[] { "[0-9a-zA-Z]+", "[0-9a-zA-Z]+" });
endPoint.SetParameters(new[] { "[0-9a-zA-Z_]+", "[0-9a-zA-Z_]+" });

var sourceUrl = endPoint.GetUrl();
sourceUrl = sourceUrl.Replace("/", "\\/");
var ex = new Regex(sourceUrl);
if (!ex.IsMatch(response.RequestURL)) continue;

targetType = mapItem.Value;
break;
}
Expand Down

0 comments on commit 180d4bf

Please sign in to comment.