type.inbound
// You should only observe RTL injection when RTL languages are present.
and (
regex.icount(body.html.raw, 'unicode-bidi\s*:\s*bidi-override[^>]*rtl') + regex.icount(body.html.raw,
'<bdo dir="rtl">'
)
// Count allows for scalability for FP's.
) >= 3
// exclude legitimate CSS star-rating widgets
and not regex.icontains(body.html.raw, '\.rating[^}]*:hover')
Playground
Test against your own EMLs or sample data.