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

Class EmailHighlighter

examples/highlighter.py:10–14  ·  view source on GitHub ↗

Apply style to anything that looks like an email.

Source from the content-addressed store, hash-verified

8
9
10class EmailHighlighter(RegexHighlighter):
11 """Apply style to anything that looks like an email."""
12
13 base_style = "example."
14 highlights = [r"(?P<email>[\w-]+@([\w-]+\.)+[\w-]+)"]
15
16
17theme = Theme({"example.email": "bold magenta"})

Callers 1

highlighter.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…