Skip to content

Commit 6feda7b

Browse files
authored
fix generate web-types.json bug (#5674)
set the wrong default value by parse md table error.
1 parent 2a3798e commit 6feda7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function readLine(input: string) {
2525
}
2626

2727
function splitTableLine(line: string) {
28-
line = line.replace('\\|', 'JOIN');
28+
line = line.replace(/\\\|/g, 'JOIN');
2929

3030
const items = line.split('|').map(item => item.trim().replace('JOIN', '|'));
3131

0 commit comments

Comments
 (0)