removed look ahead / back regex for safari (#1829)

fixes: #1806
This commit is contained in:
Erik Jan de Wit 2022-01-07 08:28:19 +01:00 committed by GitHub
parent ced1008ad5
commit 2d5c66b108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,8 +53,8 @@ export const DownloadDialog = ({
const sanitizeSnippet = (snippet: string) =>
snippet.replace(
/(?<=<PrivateKeyPem>).*(?=<\/PrivateKeyPem>)/gs,
t("clients:privateKeyMask")
/<PrivateKeyPem>.*<\/PrivateKeyPem>/gs,
`<PrivateKeyPem>${t("clients:privateKeyMask")}</PrivateKeyPem>`
);
useFetch(