add / after baseUrl (#605)

This commit is contained in:
Erik Jan de Wit 2021-05-19 09:56:59 +02:00 committed by GitHub
parent 435fb81550
commit 10f06af8aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,9 +87,11 @@ export const upperCaseFormatter = (): IFormatter => (
}; };
export const getBaseUrl = (adminClient: KeycloakAdminClient) => { export const getBaseUrl = (adminClient: KeycloakAdminClient) => {
return adminClient.keycloak return (
? adminClient.keycloak.authServerUrl! (adminClient.keycloak
: adminClient.baseUrl + "/"; ? adminClient.keycloak.authServerUrl!
: adminClient.baseUrl) + "/"
);
}; };
export const emailRegexPattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; export const emailRegexPattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;