pepipost / BIMI-official

✨ Brand Indicators for Message Identification or BIMI ( 📢 pronounced: Bih-mee) is an emerging email 📧 specification that enables the use of brand-controlled logos within supporting email clients 🔮.
https://bimigroup.org/
MIT License
8 stars 5 forks source link

Evidence documents do not require the .pem extension #6

Closed marcbradshaw closed 3 years ago

marcbradshaw commented 3 years ago
        regex_cert = r"v=BIMI1;(?=.*(l=((.*):\/\/(.*.svg|.*.SVG)))\b)(?=.*(a=((.*):\/\/(.*.pem|.*.PEM)))\b).*(;$| |$)"
        regex_without_cert = r"v=BIMI1;(|\s+)l=((.*):\/\/(.*.svg|.*.SVG))(;| |).*"

.pem is not a required extension, I have also seen these extensions capitalized as Svg in the wild, which would fail the regex.

Hiteshpandey commented 3 years ago

Updated the extension checks. We have kept the .pem extension check, until further confirmation on BIMI.