Skip to content

Commit

Permalink
fix: Incompatible with pure number types (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolking authored Sep 29, 2023
1 parent 01d9127 commit b63acaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function isCommonType(type: string): boolean {
'string',
'number',
'bigint',
'\\d+',
'boolean',
'object',
'array',
Expand Down
1 change: 1 addition & 0 deletions test/mult.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This is a description of the Third component
|------|-------------|------|---------|
| size | size of component | 'default' / 'small' / 'large' | default |
| type | type of component | 'primary' \| 'success' \| 'warning' \| 'danger' ||
| count | count number | 1 / 2 / 3 / 4 / 5 | 2 |

<!--
Supports the use of separator `/` to split the type, and is compatible with the `\|` split type
Expand Down

0 comments on commit b63acaa

Please sign in to comment.