[ACS-5398] Fixed useless regular expression character (#8710)

This commit is contained in:
AleksanderSklorz
2023-06-27 13:56:13 +02:00
committed by GitHub
parent 3f4fe2a898
commit bce1f34c2f

View File

@@ -283,7 +283,7 @@ export class AttachFileWidgetComponent extends UploadWidgetComponent implements
}
private getDomainHost(urlToCheck: string): string {
const result = urlToCheck.match('^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)');
const result = urlToCheck.match('^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\\.)?([^:\/?\n]+)');
return result[1];
}