Skip to content

Commit 03e574b

Browse files
authored
Update rich/text.py
1 parent e933d3c commit 03e574b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rich/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def highlight_regex(
600600
translated to styles.
601601
602602
Args:
603-
re_highlight (Union[re.Pattern, str]): A regular expression.
603+
re_highlight (Union[re.Pattern, str]): A regular expression object or string.
604604
style (Union[GetStyleCallable, StyleType]): Optional style to apply to whole match, or a callable
605605
which accepts the matched text and returns a style. Defaults to None.
606606
style_prefix (str, optional): Optional prefix to add to style group names.

0 commit comments

Comments
 (0)