Skip to content
Snippets Groups Projects
Commit 898b2bb5 authored by Igor Markin's avatar Igor Markin
Browse files

Improve removal of the QR code from plain part

parent 55d373e2
Branches
Tags
No related merge requests found
......@@ -30,8 +30,14 @@ const patchOutlookSafelinksWrappers = (text: string) => {
const removeQRCodes = (s: string): string => {
return s
.replace(/\[(image:\s)*qrcode.png]\s*<https:\/\/.+?>/g, "")
.replace(/<https:\/\/.+?>\s*\[(image: )*qrcode.png]/g, "");
.replace(
/\[(image:\s)*qrcode.png]\s*<https:\/\/.+(vereign\.com|vrgnservices\.com).*?>/g,
""
)
.replace(
/<https:\/\/.+(vereign\.com|vrgnservices\.com).*?>\s*\[(image: )*qrcode.png]/g,
""
);
};
export const cleanupHiddenCharacters = (s: string): string => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment