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

Add build

parent b8bb416b
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ const URL = require("url-parse"); ...@@ -6,7 +6,6 @@ const URL = require("url-parse");
const utils_1 = require("../utils"); const utils_1 = require("../utils");
const normalizePlainPart = (text) => { const normalizePlainPart = (text) => {
text = exports.cleanupHiddenCharacters(text); text = exports.cleanupHiddenCharacters(text);
text = removeListBullets(text);
text = removeQRCodes(text); text = removeQRCodes(text);
text = utils_1.normalizeTextSpacings(text); text = utils_1.normalizeTextSpacings(text);
text = patchOutlookSafelinksWrappers(text); text = patchOutlookSafelinksWrappers(text);
...@@ -29,9 +28,6 @@ const removeQRCodes = (s) => { ...@@ -29,9 +28,6 @@ const removeQRCodes = (s) => {
.replace(/\[(image:\s)*qrcode.png]\s*<https:\/\/.+?>/g, "") .replace(/\[(image:\s)*qrcode.png]\s*<https:\/\/.+?>/g, "")
.replace(/<https:\/\/.+?>\s*\[(image: )*qrcode.png]/g, ""); .replace(/<https:\/\/.+?>\s*\[(image: )*qrcode.png]/g, "");
}; };
const removeListBullets = (s) => {
return s.replace("\n[o§]\n+/g", "");
};
const cleanupHiddenCharacters = (s) => { const cleanupHiddenCharacters = (s) => {
const removeSymbols = new RegExp(/[\u200B]+/g); const removeSymbols = new RegExp(/[\u200B]+/g);
return s.replace(removeSymbols, ""); 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