Skip to content

Commit ea03e82

Browse files
puppetswNirmal4G
andauthored
Update Microsoft.Toolkit.Uwp.UI/Extensions/TextBox/TextBoxExtensions.Mask.Internals.cs
This makes sense. We shouldn't ignore the casing. Co-authored-by: Nirmal Guru <[email protected]>
1 parent 8e42644 commit ea03e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Microsoft.Toolkit.Uwp.UI/Extensions/TextBox/TextBoxExtensions.Mask.Internals.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private static void Textbox_TextChanging(TextBox textbox, TextBoxTextChangingEve
298298
if (oldSelectionStart >= oldText.Length && !isDeleteOrBackspace)
299299
{
300300
// ignore change(s) if oldtext is a substring of new text value
301-
if (textbox.Text.Contains(oldText, StringComparison.OrdinalIgnoreCase))
301+
if (textbox.Text.Contains(oldText))
302302
{
303303
textbox.Text = oldText;
304304

@@ -435,4 +435,4 @@ private static int GetSelectionStart(string mask, List<int> escapedChars, int se
435435
return selectionIndex;
436436
}
437437
}
438-
}
438+
}

0 commit comments

Comments
 (0)