Tidy up code
All checks were successful
Jenkins Production Deployment

This commit is contained in:
Patrick Müller 2022-12-28 16:32:26 +01:00
parent a1c46c2648
commit 418b5fc4a0
Signed by: Paddy
GPG Key ID: 37ABC11275CAABCE

View File

@ -167,9 +167,7 @@ export class EventComponent implements OnInit {
if(validUrl){ if(validUrl){
let match = this.event!.url.match(urlRegex); let match = this.event!.url.match(urlRegex);
if(match) { if(match) {
console.log(match); this.event!.url = 'https://' + match[2];
let url = 'https://' + match[2];
this.event!.url = url;
} else { } else {
validUrl = false; validUrl = false;
} }