@emailens/engine 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +120 -120
package/dist/index.cjs
CHANGED
|
@@ -8872,8 +8872,9 @@ var PREHEADER_ACCESSORY_PATTERNS = [
|
|
|
8872
8872
|
/color\s*:\s*transparent/,
|
|
8873
8873
|
/line-height\s*:\s*0/
|
|
8874
8874
|
];
|
|
8875
|
+
var INVISIBLE_CHARS = /[-]/g;
|
|
8875
8876
|
function isLikelyPreheader(style, text) {
|
|
8876
|
-
if (text.length > 200) return false;
|
|
8877
|
+
if (text.replace(INVISIBLE_CHARS, "").trim().length > 200) return false;
|
|
8877
8878
|
return PREHEADER_ACCESSORY_PATTERNS.some((p) => p.test(style));
|
|
8878
8879
|
}
|
|
8879
8880
|
function checkHiddenText($) {
|