Permalink
Browse files

Merge pull request #138 from Stroitel/fix-regex

[Profiler] fix regex for replacing the parameters
  • Loading branch information...
2 parents ac854d9 + d24fd46 commit 2991d0dfa58a5583d9231c490750e29c45b0a6e9 @stof stof committed Dec 11, 2012
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 2991d0d

Please sign in to comment.