2021-11-11 03:28:10 +00:00
|
|
|
<?php
|
2022-07-06 20:54:48 +00:00
|
|
|
/**
|
|
|
|
* Plugin_Formatter class
|
|
|
|
*
|
|
|
|
* @package WooCommerce
|
|
|
|
*/
|
2021-11-16 02:01:50 +00:00
|
|
|
|
|
|
|
namespace Automattic\WooCommerce\MonorepoTools\Changelogger;
|
|
|
|
|
|
|
|
use Automattic\Jetpack\Changelogger\FormatterPlugin;
|
|
|
|
|
2021-11-11 03:28:10 +00:00
|
|
|
/**
|
|
|
|
* Jetpack Changelogger Formatter for WooCommerce plugins
|
|
|
|
*/
|
|
|
|
|
2022-07-06 20:54:48 +00:00
|
|
|
require_once 'class-formatter.php';
|
2021-11-11 03:28:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Jetpack Changelogger Formatter for WooCommerce Plugins
|
|
|
|
*
|
|
|
|
* Class Formatter
|
|
|
|
*/
|
2022-07-06 20:54:48 +00:00
|
|
|
class Plugin_Formatter extends Formatter implements FormatterPlugin {
|
2021-11-11 03:28:10 +00:00
|
|
|
/**
|
|
|
|
* Epilogue text.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $epilogue = "---\n\n[See changelogs for previous versions](https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/changelog.txt).";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Entry pattern regex.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $entry_pattern = '/^##?#\s+([^\n=]+)\s+((?:(?!^##).)+)/ms';
|
2021-11-16 02:01:50 +00:00
|
|
|
}
|