Skip to content

Commit

Permalink
#977 Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
j3nsch committed Jan 13, 2023
1 parent 46cd292 commit d2b3888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Application/View/Helper/Highlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ public function highlight($subject, $needle, $prefix = null, $suffix = null)

$quotedNeedle = preg_quote($needle, '/');

return preg_replace("/($quotedNeedle)/i", "$prefix$0$suffix", $subject); // TODO BUG? $0
return preg_replace("/($quotedNeedle)/i", $prefix . '$0' . $suffix, $subject);
}
}

0 comments on commit d2b3888

Please sign in to comment.