Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit a22a685

Browse files
author
Guillaume Ponçon
committed
Add ? to types
1 parent 2069f4e commit a22a685

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
npm-debug.log
3+
.idea

lib/parsers/api_param.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var regExp = {
2121
},
2222
oType: { // optional type: {string}
2323
b: '\\s*(?:\\{\\s*', // starting with '{', optional surrounding spaces
24-
type: '([a-zA-Z0-9\(\)#:\\.\\/\\\\\\[\\]_-]+)', // 2
24+
type: '(\\?[a-zA-Z0-9\(\)#:\\.\\/\\\\\\[\\]_-]+)', // 2
2525
oSize: { // optional size within type: {string{1..4}}
2626
b: '\\s*(?:\\{\\s*', // starting with '{', optional surrounding spaces
2727
size: '(.+?)', // 3

0 commit comments

Comments
 (0)