SamSaffron/MiniProfiler — pull request #20 by peter-raven (2012-04-02 14:37:27+00:00)
Title: Bugfix: InlineFormatter parameter replacement bug

I ran into this issue with the InlineFormatter:

Scenario:

* Sql contains many parameters caused by "where x IN ..." implementation, like "where myid in (@myid1, @myid2, ..., @myid11, @Myid12)".
* Now the replacement algorithm will replace both @myid1, (@myid1)1 and (@myid1)2 with the value of @myid1
* Effect seen: Garbled sql in profiler output, or even worse, out-of-memory exceptions.

Fix modifies replacement regex to only replace @myid1 and not @myid1something.