Browse Source

Merge pull request #5434 from abpframework/fix/5433

Proxy Generator: Avoided root namespace to turn into directories when there is no namespace
pull/5439/head
Mehmet Erim 6 years ago
committed by GitHub
parent
commit
897e29533c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/ng-packs/packages/schematics/src/utils/namespace.ts

2
npm/ng-packs/packages/schematics/src/utils/namespace.ts

@ -7,6 +7,8 @@ export function parseNamespace(solution: string, type: string) {
.slice(0, -1)
.join('.');
if (solution === namespace) return '';
solution.split('.').reduceRight((acc, part) => {
acc = `${part}\\.${acc}`;
const regex = new RegExp(`^${acc}(Controllers\\.)?`);

Loading…
Cancel
Save