danschultzer / premailex

Preflight for your HTML emails - inline styling and plain text.
MIT License
172 stars 20 forks source link

[#48] Premailer and @font-face #49

Closed bitboxer closed 5 years ago

bitboxer commented 5 years ago

closes #48

I really hope the regexp does match the right things and not too much 🙈 . Using s modifier because this.

danschultzer commented 5 years ago

Thanks! Sorry for the late response.

m modifer would still work as long as you catch the line breaks. It's done with \s shorthand rather than . metacharacter. The s modifier just makes it so the whole document is treated as a single line (which I would argue is less explicit).

I've updated the RegExp 😄