Permalink
Browse files

[Profiler] fix regex for replacing the parameters

  • Loading branch information...
f1nder committed Dec 11, 2012
1 parent ac854d9 commit d24fd46b3652e93571c6dcd11d6234bf4b082886
Showing with 1 addition and 1 deletion.
  1. +1 −1 Twig/DoctrineExtension.php
@@ -290,7 +290,7 @@ public function replaceQueryParameters($query, $parameters)
$i = 0;
$result = preg_replace_callback(
- '/\?|(:[a-z0-9]+)/i',
+ '/\?|(:[a-z0-9_]+)/i',
function ($matches) use ($parameters, &$i) {
$key = substr($matches[0], 1);
if (!isset($parameters[$i]) && !isset($parameters[$key])) {

0 comments on commit d24fd46

Please sign in to comment.