Commit ba8f3fad authored by jods's avatar jods

Non-greedy match for comments regex

Fixes #436, #280
My editor has also normalized a few line endings to LF like 99% of the
file was.
parent 6e03f898
...@@ -64,7 +64,7 @@ public Template(SqlBuilder builder, string sql, dynamic parameters) ...@@ -64,7 +64,7 @@ public Template(SqlBuilder builder, string sql, dynamic parameters)
_builder = builder; _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() 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