Skip to content
Snippets Groups Projects

"Rework normalisation logic to handle new seal templates"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -6,11 +6,11 @@ const URL = require("url-parse");
const utils_1 = require("../utils");
const normalizePlainPart = (text, sealRemovalOptions) => {
text = exports.cleanupHiddenCharacters(text);
text = patchOutlookSafelinksWrappers(text);
if (sealRemovalOptions) {
text = removeSeal(text, sealRemovalOptions.sealUrl);
}
text = utils_1.normalizeTextSpacings(text);
text = patchOutlookSafelinksWrappers(text);
return text.trim();
};
exports.normalizePlainPart = normalizePlainPart;
Loading