From e45412894b8c11748f3e84b8da8eaef18edde2ec Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Fri, 15 Jan 2021 00:00:28 +0300 Subject: [PATCH] limit chars allowed before System when parsing types --- npm/ng-packs/packages/schematics/src/utils/type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/schematics/src/utils/type.ts b/npm/ng-packs/packages/schematics/src/utils/type.ts index a087392d40..dbae0c55db 100644 --- a/npm/ng-packs/packages/schematics/src/utils/type.ts +++ b/npm/ng-packs/packages/schematics/src/utils/type.ts @@ -9,7 +9,7 @@ import { parseGenerics } from './tree'; export function createTypeSimplifier() { const parseType = createTypeParser(t => { let type = t.replace( - /System\.([0-9A-Za-z.]+)/g, + /(? SYSTEM_TYPES.get(match) ?? 'any', );