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

Update build

parent 276c4cf3
No related branches found
No related tags found
1 merge request!22"Rework normalisation logic to handle new seal templates"
...@@ -6,11 +6,11 @@ const URL = require("url-parse"); ...@@ -6,11 +6,11 @@ const URL = require("url-parse");
const utils_1 = require("../utils"); const utils_1 = require("../utils");
const normalizePlainPart = (text, sealRemovalOptions) => { const normalizePlainPart = (text, sealRemovalOptions) => {
text = exports.cleanupHiddenCharacters(text); text = exports.cleanupHiddenCharacters(text);
text = patchOutlookSafelinksWrappers(text);
if (sealRemovalOptions) { if (sealRemovalOptions) {
text = removeSeal(text, sealRemovalOptions.sealUrl); text = removeSeal(text, sealRemovalOptions.sealUrl);
} }
text = utils_1.normalizeTextSpacings(text); text = utils_1.normalizeTextSpacings(text);
text = patchOutlookSafelinksWrappers(text);
return text.trim(); return text.trim();
}; };
exports.normalizePlainPart = normalizePlainPart; exports.normalizePlainPart = normalizePlainPart;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment