fix generate web-types.json bug (#5674)

set the wrong default value by parse md table error.
pull/5882/head
Airene Fang 2022-08-25 11:07:49 +08:00 committed by GitHub
parent 2a3798e9b4
commit 6feda7be81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function readLine(input: string) {
} }
function splitTableLine(line: string) { function splitTableLine(line: string) {
line = line.replace('\\|', 'JOIN'); line = line.replace(/\\\|/g, 'JOIN');
const items = line.split('|').map(item => item.trim().replace('JOIN', '|')); const items = line.split('|').map(item => item.trim().replace('JOIN', '|'));