MCPcopy
hub / github.com/Textualize/rich / get_style

Function get_style

tests/test_text.py:235–238  ·  tests/test_text.py::get_style
(text: str)

Source from the content-addressed store, hash-verified

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)

Callers 6

get_style_at_offsetMethod · 0.85
renderMethod · 0.85
get_style_for_tokenMethod · 0.85
__rich_console__Method · 0.85
_get_cellsMethod · 0.85
_renderMethod · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected