38 lines
771 B
PHP
38 lines
771 B
PHP
<?php
|
|
/**
|
|
* Plugin_Formatter class
|
|
*
|
|
* @package WooCommerce
|
|
*/
|
|
|
|
namespace Automattic\WooCommerce\MonorepoTools\Changelogger;
|
|
|
|
use Automattic\Jetpack\Changelogger\FormatterPlugin;
|
|
|
|
/**
|
|
* Jetpack Changelogger Formatter for WooCommerce plugins
|
|
*/
|
|
|
|
require_once 'class-formatter.php';
|
|
|
|
/**
|
|
* Jetpack Changelogger Formatter for WooCommerce Plugins
|
|
*
|
|
* Class Formatter
|
|
*/
|
|
class Plugin_Formatter extends Formatter implements FormatterPlugin {
|
|
/**
|
|
* 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';
|
|
}
|