diff --git a/packages/angular_devkit/schematics_cli/bin/schematics.ts b/packages/angular_devkit/schematics_cli/bin/schematics.ts index fb0d19bfb1a2..c509f2cf4e2b 100644 --- a/packages/angular_devkit/schematics_cli/bin/schematics.ts +++ b/packages/angular_devkit/schematics_cli/bin/schematics.ts @@ -38,7 +38,10 @@ function parseSchematicName(str: string | null): { collection: string, schematic let schematic = str; if (schematic && schematic.indexOf(':') != -1) { - [collection, schematic] = schematic.split(':', 2); + [collection, schematic] = [ + schematic.slice(0, schematic.lastIndexOf(':')), + schematic.substring(schematic.lastIndexOf(':') + 1), + ]; } return { collection, schematic };