Skip to content

Commit c582c61

Browse files
committed
fix: add last line in file to appropriate group
1 parent 1a43923 commit c582c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-error-log-viewer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function vscode_link_filter( $matches ) {
170170
* @return void
171171
*/
172172
public function replace_callback( $arr ) {
173-
$err_id = crc32( $arr[2] ); // create a unique identifier for the error message.
173+
$err_id = crc32( trim( $arr[2] ) ); // create a unique identifier for the error message.
174174
if ( ! isset( $this->content[ $err_id ] ) ) { // we have a new error.
175175
$this->content[ $err_id ] = array();
176176
$this->content[ $err_id ]['id'] = $err_id; // err_id.

0 commit comments

Comments
 (0)