Closed marcbradshaw closed 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.
Updated the extension checks. We have kept the .pem extension check, until further confirmation on BIMI.
.pem is not a required extension, I have also seen these extensions capitalized as Svg in the wild, which would fail the regex.