We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 1b49075 commit 80713fcCopy full SHA for 80713fc
packages/generators/add-generator.ts
@@ -308,7 +308,7 @@ export default class AddGenerator extends Generator {
308
.pop()
309
.replace(".js", "")
310
)
311
- .find((p: string): boolean => p.toLowerCase().indexOf(answeredPluginName) >= 0);
+ .find((p: string): boolean => p.toLowerCase().indexOf(answeredPluginName) >= 0 || p.indexOf(answeredPluginName) >= 0);
312
313
if (pluginExist) {
314
this.configuration.config.item = pluginExist;
@@ -323,7 +323,7 @@ export default class AddGenerator extends Generator {
323
.split("/")
324
325
.replace(".json", "")
326
- .indexOf(answeredPluginName) >= 0
+ .indexOf(pluginExist) >= 0
327
);
328
if (pluginsSchemaPath) {
329
const constructorPrefix: string =
0 commit comments