mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 15:59:51 +02:00
fix flowchart jison
This commit is contained in:
@@ -271,7 +271,7 @@ document
|
||||
{ $$ = [];}
|
||||
| document line
|
||||
{
|
||||
if(Array.isArray($2) && $2.length > 0){
|
||||
if(!Array.isArray($2) || $2.length > 0){
|
||||
$1.push($2);
|
||||
}
|
||||
$$=$1;}
|
||||
|
Reference in New Issue
Block a user