mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Length not necessary
This commit is contained in:
parent
811991b27d
commit
c310625b93
@ -71,7 +71,7 @@ final class Header implements Block
|
|||||||
|
|
||||||
# remove closing sequence
|
# remove closing sequence
|
||||||
$removedClosing = \rtrim($text, '#');
|
$removedClosing = \rtrim($text, '#');
|
||||||
$lastChar = \substr($removedClosing, -1, 1);
|
$lastChar = \substr($removedClosing, -1);
|
||||||
|
|
||||||
if (\trim($lastChar, " \t") === '') {
|
if (\trim($lastChar, " \t") === '') {
|
||||||
$text = \rtrim($removedClosing, " \t");
|
$text = \rtrim($removedClosing, " \t");
|
||||||
|
Loading…
Reference in New Issue
Block a user