-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sqlbuilder template regex #280
Comments
After replacing placeholders, Dapper removes unused templates with the regex on L67, which is The proposed solution is ok-ish in this case but not perfect. By not matching I suggest using a non-greedy modifier Another option comes to mind: obviously the syntax |
Fixes DapperLib#436, DapperLib#280 My editor has also normalized a few line endings to LF like 99% of the file was.
PR #625 fixes this bug, assuming you want to keep removing the unused comments/templates. |
Merged PR |
The current regular expression in Sqlbuilder template causes issue when clause is at the begining.
For example
"SELECT /** whatever **/ F1, F2 .. From T1 /** where **/"
the result is
"SELECT "
Replacing with this regex will fix the issue:
\/ \*\*[^\*]*\*\*\/
The text was updated successfully, but these errors were encountered: