woocommerce/tools/changelogger/class-plugin-formatter.php

38 lines
771 B
PHP
Raw Normal View History

2021-11-11 03:28:10 +00:00
<?php
/**
* Plugin_Formatter class
*
* @package WooCommerce
*/
namespace Automattic\WooCommerce\MonorepoTools\Changelogger;
use Automattic\Jetpack\Changelogger\FormatterPlugin;
2021-11-11 03:28:10 +00:00
/**
* Jetpack Changelogger Formatter for WooCommerce plugins
*/
require_once 'class-formatter.php';
2021-11-11 03:28:10 +00:00
/**
* Jetpack Changelogger Formatter for WooCommerce Plugins
*
* Class Formatter
*/
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';
}