mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
Updated Rector to commit c5d4a78df1fe7ad674631f7373e127ff75eae896
c5d4a78df1
[Windows] Support replace \r\n on DocBlockInliner (#5513)
This commit is contained in:
parent
2521815c9a
commit
758b064c65
@ -19,12 +19,12 @@ final class VersionResolver
|
|||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '1b4395caa0579c559e484b75b7fd9baadc307c0c';
|
public const PACKAGE_VERSION = 'c5d4a78df1fe7ad674631f7373e127ff75eae896';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-01-28 10:58:04';
|
public const RELEASE_DATE = '2024-01-29 01:50:53';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
@ -8,14 +8,14 @@ final class DocBlockInliner
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see https://regex101.com/r/Mjb0qi/1
|
* @see https://regex101.com/r/Mjb0qi/3
|
||||||
*/
|
*/
|
||||||
private const NEWLINE_CLOSING_DOC_REGEX = "#\n \\*\\/\$#";
|
private const NEWLINE_CLOSING_DOC_REGEX = "#(?:\r\n|\n) \\*\\/\$#";
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see https://regex101.com/r/U5OUV4/2
|
* @see https://regex101.com/r/U5OUV4/4
|
||||||
*/
|
*/
|
||||||
private const NEWLINE_MIDDLE_DOC_REGEX = "#\n \\* #";
|
private const NEWLINE_MIDDLE_DOC_REGEX = "#(?:\r\n|\n) \\* #";
|
||||||
public function inline(string $docContent) : string
|
public function inline(string $docContent) : string
|
||||||
{
|
{
|
||||||
$docContent = Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
|
$docContent = Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user