Replace first occurrence of the bullet char instead of replacing all (https://github.com/woocommerce/woocommerce-admin/pull/7465)
This commit is contained in:
parent
9d9a2772e2
commit
9a9fb8ccde
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue