Combine a number of regexes in to a single regex. Returns: str: New regex with all regexes ORed together.
(*regexes: str)
| 6 | |
| 7 | |
| 8 | def _combine_regex(*regexes: str) -> str: |
| 9 | """Combine a number of regexes in to a single regex. |
| 10 | |
| 11 | Returns: |
| 12 | str: New regex with all regexes ORed together. |
| 13 | """ |
| 14 | return "|".join(regexes) |
| 15 | |
| 16 | |
| 17 | class Highlighter(ABC): |
no test coverage detected