(text: str)
| 233 | compiled_re_cve = re.compile(rclass="st">"CVE-\d{4}-\d+") |
| 234 | |
| 235 | def get_style(text: str) -> Style: |
| 236 | return Style.parse( |
| 237 | fclass="st">"bold yellow link https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword={text}" |
| 238 | ) |
| 239 | |
| 240 | class="cm"># string |
| 241 | count = text.highlight_regex(re_cve, get_style) |
no test coverage detected