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 539e754 commit 385aedaCopy full SHA for 385aeda
packages/schematics/angular/component/index.ts
@@ -158,14 +158,12 @@ export default function (options: ComponentOptions): Rule {
158
...options,
159
}),
160
!options.type ? forEach((file => {
161
- if (!!file.path.match(new RegExp('..'))) {
162
- return {
+ return file.path.includes('..')
+ ? {
163
content: file.content,
164
path: file.path.replace('..', '.'),
165
- };
166
- } else {
167
- return file;
168
- }
+ }
+ : file;
169
}) as FileOperator) : noop(),
170
move(parsedPath.path),
171
]);
0 commit comments