Skip to content

Commit 3bf6b53

Browse files
committed
fix issue with char case comparison
1 parent 3a5490d commit 3bf6b53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AlastairLundy.Extensions.System/Strings/Contains/ContainsCharExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static bool Contains(this string source, char c, bool ignoreCase)
5353
{
5454
foreach (char ch in source)
5555
{
56-
if (ignoreCase == false)
56+
if (ignoreCase == true)
5757
{
5858
if (ch.ToString().ToLower().Equals(c.ToString().ToLower()))
5959
{

0 commit comments

Comments
 (0)