Skip to content

Commit

Permalink
100 regex matches case insensitive
Browse files Browse the repository at this point in the history
closes #100
  • Loading branch information
skamphuis committed Mar 25, 2022
1 parent 381d749 commit 127dd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Components/RedirectController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static void DoRedirect(ControlCollection logToControls, bool redirectWhen
var mappingSource = ToFullUrl(mapping.Key);
var mappingTarget = ToFullUrl(mapping.Value);

if (Regex.IsMatch(incoming, mappingSource))
if (Regex.IsMatch(incoming, mappingSource, RegexOptions.IgnoreCase))
{
// got a match!
target = Regex.Replace(incoming, mappingSource, mappingTarget);
Expand Down

0 comments on commit 127dd1b

Please sign in to comment.