@@ -20,7 +20,7 @@ public static bool ILike(
2020 [ CanBeNull ] this DbFunctions _ ,
2121 [ CanBeNull ] string matchExpression ,
2222 [ CanBeNull ] string pattern )
23- => LikeCore ( matchExpression , pattern , escapeCharacter : null ) ;
23+ => ILikeCore ( matchExpression , pattern , escapeCharacter : null ) ;
2424
2525 /// <summary>
2626 /// An implementation of the PostgreSQL ILIKE operation, which is an insensitive LIKE.
@@ -38,7 +38,7 @@ public static bool ILike(
3838 [ CanBeNull ] string matchExpression ,
3939 [ CanBeNull ] string pattern ,
4040 [ CanBeNull ] string escapeCharacter )
41- => LikeCore ( matchExpression , pattern , escapeCharacter ) ;
41+ => ILikeCore ( matchExpression , pattern , escapeCharacter ) ;
4242
4343 // Regex special chars defined here:
4444 // https://msdn.microsoft.com/en-us/library/4edbef7e(v=vs.110).aspx
@@ -56,7 +56,7 @@ private static string BuildEscapeRegexCharsPattern(IEnumerable<char> regexSpecia
5656 return string . Join ( "|" , regexSpecialChars . Select ( c => @"\" + c ) ) ;
5757 }
5858
59- private static bool LikeCore ( string matchExpression , string pattern , string escapeCharacter )
59+ private static bool ILikeCore ( string matchExpression , string pattern , string escapeCharacter )
6060 {
6161 //TODO: this fixes https://github.com/aspnet/EntityFramework/issues/8656 by insisting that
6262 // the "escape character" is a string but just using the first character of that string,
@@ -133,7 +133,7 @@ var regexPattern
133133 return Regex . IsMatch (
134134 matchExpression ,
135135 @"\A" + regexPattern + @"\s*\z" ,
136- RegexOptions . Singleline ,
136+ RegexOptions . IgnoreCase | RegexOptions . Singleline ,
137137 _regexTimeout ) ;
138138 }
139139 }
0 commit comments