Skip to content

Commit 9648cde

Browse files
committed
Fix broken SQL Server regexes in Dapper example
1 parent 6f3dbd9 commit 9648cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/DapperTests/IntegrationTests/SqlTextAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ namespace DapperTests.IntegrationTests;
66
internal sealed class SqlTextAdapter(DatabaseProvider databaseProvider)
77
{
88
#if NET6_0
9-
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture;
9+
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant;
1010
#else
11-
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture | RegexOptions.NonBacktracking;
11+
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.NonBacktracking;
1212
#endif
1313

1414
private static readonly Dictionary<Regex, string> SqlServerReplacements = new()

0 commit comments

Comments
 (0)