Skip to content

Commit a1cefc6

Browse files
committed
Fix regex to work in .NET 10
1 parent 27c7917 commit a1cefc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Dialect/MsSql2000Dialect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ public LockHintAppender(MsSql2000Dialect dialect, IDictionary<string, LockMode>
809809
// Match < alias >, < alias,>, or < alias$>, the intent is to capture alias names
810810
// in various kinds of "FROM table1 alias1, table2 alias2".
811811
_matchRegex = new Regex(" (" + aliasesPattern + ")([, ]|$)");
812-
_unionSubclassRegex = new Regex(@"from\s+\(((?:.|\r|\n)*)\)(?:\s+as)?\s+(?<alias>" + aliasesPattern + ")", RegexOptions.IgnoreCase | RegexOptions.Multiline);
812+
_unionSubclassRegex = new Regex(@"from\s+\(([\s\S]+)\)(?:\s+as)?\s+(?<alias>" + aliasesPattern + ")", RegexOptions.IgnoreCase | RegexOptions.Multiline);
813813
}
814814

815815
public SqlString AppendLockHint(SqlString sql)

0 commit comments

Comments
 (0)