1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Simplify expression

This commit is contained in:
Aidan Woods 2019-02-03 01:05:06 +00:00
parent 93650fb9b5
commit 2efae741bb
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -103,8 +103,7 @@ final class Table implements ContinuableBlock
if (
\count($this->alignments) !== 1
&& \substr($Context->line()->text(), 0, 1) !== '|'
&& !\strpos($Context->line()->text(), '|')
&& \strpos($Context->line()->text(), '|') === false
) {
return null;
}