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

Do not remove paragraph symbols

parent 3465afac
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import { normalizeTextSpacings } from "../utils";
export const normalizePlainPart = (text: string): string => {
text = cleanupHiddenCharacters(text);
text = removeListBullets(text);
text = removeQRCodes(text);
text = normalizeTextSpacings(text);
text = patchOutlookSafelinksWrappers(text);
......@@ -35,10 +34,6 @@ const removeQRCodes = (s: string): string => {
.replace(/<https:\/\/.+?>\s*\[(image: )*qrcode.png]/g, "");
};
const removeListBullets = (s: string): string => {
return s.replace("\n[o§]\n+/g", "");
};
export const cleanupHiddenCharacters = (s: string): string => {
const removeSymbols = new RegExp(/[\u200B]+/g);
return s.replace(removeSymbols, "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment