Commit 80713fc 1 parent 1b49075 commit 80713fc Copy full SHA for 80713fc
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ export default class AddGenerator extends Generator {
308
308
. pop ( )
309
309
. replace ( ".js" , "" )
310
310
)
311
- . find ( ( p : string ) : boolean => p . toLowerCase ( ) . indexOf ( answeredPluginName ) >= 0 ) ;
311
+ . find ( ( p : string ) : boolean => p . toLowerCase ( ) . indexOf ( answeredPluginName ) >= 0 || p . indexOf ( answeredPluginName ) >= 0 ) ;
312
312
313
313
if ( pluginExist ) {
314
314
this . configuration . config . item = pluginExist ;
@@ -323,7 +323,7 @@ export default class AddGenerator extends Generator {
323
323
. split ( "/" )
324
324
. pop ( )
325
325
. replace ( ".json" , "" )
326
- . indexOf ( answeredPluginName ) >= 0
326
+ . indexOf ( pluginExist ) >= 0
327
327
) ;
328
328
if ( pluginsSchemaPath ) {
329
329
const constructorPrefix : string =
You can’t perform that action at this time.
0 commit comments