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 cf18872 commit b604f05Copy full SHA for b604f05
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]+|\*/ig);
225
- const key = match[0] + (match[1] ? '*' : '');
226
- result[key] = prop.match(/:(.[a-z0-9]+)/i)[1]
+ const match = prop.match(/^[a-z0-9]+|:(.[a-z0-9]+)|\*/ig);
+ const key = match[0] + (match[2] ? '*' : '');
+ result[key] = match[1].substring(1)
227
}
228
229
0 commit comments