From 1a3846aaa823ca80e75ae1215e56194fdcf35eea Mon Sep 17 00:00:00 2001 From: Erik Svensson Date: Mon, 5 Feb 2024 17:39:26 +0100 Subject: [PATCH] =?UTF-8?q?add=20=C3=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/dns-lookup/dns-lookup.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/dns-lookup/dns-lookup.component.ts b/src/app/dns-lookup/dns-lookup.component.ts index 0adcae8..f3721e4 100644 --- a/src/app/dns-lookup/dns-lookup.component.ts +++ b/src/app/dns-lookup/dns-lookup.component.ts @@ -2,11 +2,11 @@ import { CommonModule } from '@angular/common'; import { Component, DestroyRef, inject } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { FormBuilder, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms'; +import { DnsLookupResponseItemComponent } from '../dns-lookup-response-item/dns-lookup-response-item.component'; import { LookupRequest } from '../models/lookup-request'; import { LookupResponse } from '../models/lookup-response'; import { ErrorHandlerService } from '../services/error-handler.service'; import { LookupService } from '../services/lookup.service'; -import { DnsLookupResponseItemComponent } from '../dns-lookup-response-item/dns-lookup-response-item.component'; @Component({ selector: 'app-dns-lookup', @@ -22,7 +22,7 @@ import { DnsLookupResponseItemComponent } from '../dns-lookup-response-item/dns- }) export class DnsLookupComponent { destroyRef = inject(DestroyRef); - regex = /^(([A-ZÅÄÖa-zåäö0-9][A-ZÅÄÖa-zåäö0-9\-]*[A-ZÅÄÖa-zåö0-9]\.)+([A-Za-z]{2,63}\.?))|((\d{1,3}\.){3}\d{1,3})$/; + regex = /^(([A-ZÅÄÖa-zåäö0-9][A-ZÅÄÖa-zåäö0-9\-]*[A-ZÅÄÖa-zåäö0-9]\.)+([A-Za-z]{2,63}\.?))|((\d{1,3}\.){3}\d{1,3})$/; form = this.fb.group({ searchField: ['', Validators.compose([Validators.required, Validators.pattern(this.regex)])] });