From 872f36752f585740ab4ee996b924af41951f74ac Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:03:54 +0100 Subject: [PATCH] [PM-13876] Generator PR review follow up (#11885) * Remove unused regex * Remove viewChild reference from markup --------- Co-authored-by: Daniel James Smith --- .../generator/components/src/catchall-settings.component.ts | 5 ----- .../components/src/credential-generator.component.html | 6 ------ .../components/src/password-generator.component.html | 2 -- .../components/src/username-generator.component.html | 4 ---- 4 files changed, 17 deletions(-) diff --git a/libs/tools/generator/components/src/catchall-settings.component.ts b/libs/tools/generator/components/src/catchall-settings.component.ts index 74fb37d233..3a42d68297 100644 --- a/libs/tools/generator/components/src/catchall-settings.component.ts +++ b/libs/tools/generator/components/src/catchall-settings.component.ts @@ -12,11 +12,6 @@ import { import { completeOnAccountSwitch } from "./util"; -/** Splits an email into a username, subaddress, and domain named group. - * Subaddress is optional. - */ -export const DOMAIN_PARSER = new RegExp("[^@]+@(?.+)"); - /** Options group for catchall emails */ @Component({ selector: "tools-catchall-settings", diff --git a/libs/tools/generator/components/src/credential-generator.component.html b/libs/tools/generator/components/src/credential-generator.component.html index 0182bd1c20..ce86abe80a 100644 --- a/libs/tools/generator/components/src/credential-generator.component.html +++ b/libs/tools/generator/components/src/credential-generator.component.html @@ -39,14 +39,12 @@