Browse Source

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

set the wrong default value by parse md table error.
pull/5882/head
Airene Fang 2 years ago committed by GitHub
parent
commit
6feda7be81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      antd-tools/generator-types/src/parser.ts

2
antd-tools/generator-types/src/parser.ts

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

Loading…
Cancel
Save