Commit f0dc1af6 authored by Taddeus Kroes's avatar Taddeus Kroes

asprintf() now supports digits in keys

parent 9a9c5946
......@@ -98,7 +98,7 @@ class FileNotFoundError extends \RuntimeException {
*/
function asprintf($format, array $params) {
return preg_replace_callback(
'/%\(([a-z-_ ]*)\)/i',
'/%\(([a-z0-9-_ ]*)\)/i',
function($matches) use ($params) {
return (string)$params[$matches[1]];
},
......
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