We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee745b commit e116a49Copy full SHA for e116a49
bin/initialize.js
@@ -221,9 +221,9 @@ program
221
222
for (prop of propNames){
223
if(/:/.test(prop)){
224
- const match = prop.match(/^[a-z0-9]+|(?<=:).[a-z0-9]+|\*/ig);
225
- const key = match[0] + (match[2] ? '*' : '');
226
- result[key] = match[1]
+ const [name, type, required ] = prop.match(/^[a-z0-9]+|(?<=:).[a-z0-9]+|\*/ig);
+ const key = name + (required ? '*' : '');
+ result[key] = type
227
}
228
229
0 commit comments