From 73a47af80e15a4b9d5b97956458bacafb43138bd Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 11 Oct 2021 11:09:27 +0200 Subject: [PATCH] fix(@angular/cli): accept `UA-00000-0` format in analytics `tracking` id With this change we update the validation of the tracking id to accept tracking ids in `UA-00000-0` format. Partially addressses #21916 (cherry picked from commit f7d6a48f8798ec8c6893c590d510590863379b0d) --- packages/angular/cli/lib/config/workspace-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/cli/lib/config/workspace-schema.json b/packages/angular/cli/lib/config/workspace-schema.json index cc45e0b879ad..bc9012751b81 100644 --- a/packages/angular/cli/lib/config/workspace-schema.json +++ b/packages/angular/cli/lib/config/workspace-schema.json @@ -69,7 +69,7 @@ "tracking": { "description": "Analytics sharing info tracking ID.", "type": "string", - "pattern": "^GA-\\d+-\\d+$" + "pattern": "^(GA|UA)?-\\d+-\\d+$" }, "uuid": { "description": "Analytics sharing info universally unique identifier.",