We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf3331 commit a9777cdCopy full SHA for a9777cd
Templating/Helper/CodeHelper.php
@@ -200,7 +200,7 @@ public function formatFileFromText($text)
200
{
201
$that = $this;
202
203
- return preg_replace_callback('/in (")?(.*?)\1(?: +(?:on|at))? +line (\d+)/', function ($match) use ($that) {
+ return preg_replace_callback('/in ("|")?(.+?)\1(?: +(?:on|at))? +line (\d+)/s', function ($match) use ($that) {
204
return 'in '.$that->formatFile($match[2], $match[3]);
205
}, $text);
206
}
0 commit comments