mirror of
https://github.com/Textualize/rich.git
synced 2025-12-23 07:08:35 +00:00
Tweaks required by black
This commit is contained in:
parent
4929ee49c3
commit
65fcf28128
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import re
|
||||
|
||||
from io import StringIO
|
||||
from typing import List
|
||||
|
||||
|
|
@ -213,7 +212,9 @@ def test_highlight_regex():
|
|||
text = Text("Ada Lovelace, Alan Turing")
|
||||
|
||||
count = text.highlight_regex(
|
||||
re.compile(r"(?P<yellow>[A-Za-z]+)[ ]+(?P<red>[A-Za-z]+)(?P<NEVER_MATCH>NEVER_MATCH)*")
|
||||
re.compile(
|
||||
r"(?P<yellow>[A-Za-z]+)[ ]+(?P<red>[A-Za-z]+)(?P<NEVER_MATCH>NEVER_MATCH)*"
|
||||
)
|
||||
)
|
||||
|
||||
# The number of matched name should be 2
|
||||
|
|
@ -226,7 +227,6 @@ def test_highlight_regex():
|
|||
]
|
||||
|
||||
|
||||
|
||||
def test_highlight_regex_callable():
|
||||
text = Text("Vulnerability CVE-2018-6543 detected")
|
||||
re_cve = r"CVE-\d{4}-\d+"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue