We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4929ee4 commit 65fcf28Copy full SHA for 65fcf28
tests/test_text.py
@@ -1,5 +1,4 @@
1
import re
2
-
3
from io import StringIO
4
from typing import List
5
@@ -213,7 +212,9 @@ def test_highlight_regex():
213
212
text = Text("Ada Lovelace, Alan Turing")
214
215
count = text.highlight_regex(
216
- 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)*"
217
+ )
218
)
219
220
# The number of matched name should be 2
@@ -226,7 +227,6 @@ def test_highlight_regex():
226
227
]
228
229
230
def test_highlight_regex_callable():
231
text = Text("Vulnerability CVE-2018-6543 detected")
232
re_cve = r"CVE-\d{4}-\d+"
0 commit comments