fix flowchart jison

This commit is contained in:
Sidharth Vinod 2022-09-02 00:46:02 +05:30
parent 53fe35e37e
commit f1fa91a51c
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@
"build:code": "node .esbuild/esbuild.cjs",
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
"build:webpack": "webpack --mode production --progress --color",
"build:watch": "yarn build:code --watch",
"build": "yarn clean; concurrently \"yarn build:code\" \"yarn build:types\"",
"postbuild": "documentation build src/mermaidAPI.ts src/config.ts src/defaultConfig.ts --shallow -f md --markdown-toc false > docs/Setup.md",
"build:watch": "yarn build:code --watch",
"release": "yarn build",
"lint": "eslint --cache ./ --ext .js,.json,.html,.md",
"lint:fix": "yarn lint --fix",

View File

@ -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;}