Replace first occurrence of the bullet char instead of replacing all (https://github.com/woocommerce/woocommerce-admin/pull/7465)

This commit is contained in:
Moon 2021-08-05 15:36:59 -07:00 committed by GitHub
parent 9d9a2772e2
commit 9a9fb8ccde
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class WCAdminFormatter extends KeepAChangelogParser implements FormatterPlugin {
$rows = explode( "\n", $content );
foreach ( $rows as $row ) {
$row = trim( $row );
$row = str_replace( $this->bullet, '', $row );
$row = preg_replace( '/' . $this->bullet . '/', '', $row, 1 );
$row_segments = explode( ':', $row );
array_push(