Skip to content

Commit

Permalink
clean up regex
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 15, 2016
1 parent cd7a100 commit 040499c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Notifications/Messages/SimpleMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function formatLine($line)
return implode(' ', array_map('trim', $line));
}

return trim(implode(' ', array_map('trim', preg_split('/\n|\r\n?/', $line))));
return trim(implode(' ', array_map('trim', preg_split("/\\r\\n|\\r|\\n/", $line))));
}

/**
Expand Down

0 comments on commit 040499c

Please sign in to comment.