1
0
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:
Aidan Woods 2019-02-02 23:34:54 +00:00
parent 811991b27d
commit c310625b93
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -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");