Skip to content

Commit d5c2af3

Browse files
author
Yury Shapkarin
committed
asterisk at the end
1 parent 4c3a4e1 commit d5c2af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/initialize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ program
220220

221221
for (prop of propNames){
222222
if(/:/.test(prop)){
223-
const [name, type, required] = prop.match(/^[a-z0-9]+|(?<=:).[a-z0-9]+|\*/ig);
223+
const [name, type, required] = prop.match(/^[a-z0-9]+|(?<=:).[a-z0-9]+|\*$/ig);
224224
const key = name + (required ? '*' : '');
225225
withTypes[key] = type
226226
}

0 commit comments

Comments
 (0)