Skip to content

Commit

Permalink
Merge pull request #266 from thephpleague/fix/tabs-in-setext-heading-…
Browse files Browse the repository at this point in the history
…underlines

Allow trailing tabs in setext heading underlines
  • Loading branch information
colinodell authored Nov 8, 2016
2 parents 19fb966 + da6a863 commit 9fc5bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Block/Parser/SetExtHeadingParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function parse(ContextInterface $context, Cursor $cursor)
return false;
}

$match = RegexHelper::matchAll('/^(?:=+|-+) *$/', $cursor->getLine(), $cursor->getFirstNonSpacePosition());
$match = RegexHelper::matchAll('/^(?:=+|-+)[ \t]*$/', $cursor->getLine(), $cursor->getFirstNonSpacePosition());
if ($match === null) {
return false;
}
Expand Down

0 comments on commit 9fc5bb6

Please sign in to comment.