Skip to content

Commit

Permalink
improvement regex (#1548)
Browse files Browse the repository at this point in the history
  • Loading branch information
EngRajabi authored Apr 29, 2022
1 parent 3a41288 commit 3072fd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Data.SqlClient
internal sealed class SqlCommandSet
{
private const string SqlIdentifierPattern = "^@[\\p{Lo}\\p{Lu}\\p{Ll}\\p{Lm}_@#][\\p{Lo}\\p{Lu}\\p{Ll}\\p{Lm}\\p{Nd}\uff3f_@#\\$]*$";
private static readonly Regex s_sqlIdentifierParser = new(SqlIdentifierPattern, RegexOptions.ExplicitCapture | RegexOptions.Singleline);
private static readonly Regex s_sqlIdentifierParser = new(SqlIdentifierPattern, RegexOptions.ExplicitCapture | RegexOptions.Singleline | RegexOptions.Compiled);

private List<LocalCommand> _commandList = new();

Expand Down

0 comments on commit 3072fd6

Please sign in to comment.