Commit 99e6b963 authored by Marc Gravell's avatar Marc Gravell Committed by GitHub

Merge pull request #625 from jods4/patch-280

Non-greedy match for comments regex
parents 6e03f898 ba8f3fad
......@@ -64,7 +64,7 @@ public Template(SqlBuilder builder, string sql, dynamic parameters)
_builder = builder;
}
private static readonly Regex _regex = new Regex(@"\/\*\*.+\*\*\/", RegexOptions.Compiled | RegexOptions.Multiline);
private static readonly Regex _regex = new Regex(@"\/\*\*.+?\*\*\/", RegexOptions.Compiled | RegexOptions.Multiline);
void ResolveSql()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment