r""" Extend regex for pattern-wide concerns. Apply '(?s:)' to create a non-matching group that matches newlines (valid on Unix). Append '\z' to imply fullmatch even when match is used.
(self, pattern)
| 30 | return self.extend(self.match_dirs(self.translate_core(pattern))) |
| 31 | |
| 32 | def extend(self, pattern): |
| 33 | r""" |
| 34 | Extend regex for pattern-wide concerns. |
| 35 | |
| 36 | Apply '(?s:)' to create a non-matching group that |
| 37 | matches newlines (valid on Unix). |
| 38 | |
| 39 | Append '\z' to imply fullmatch even when match is used. |
| 40 | """ |
| 41 | return rf'(?s:{pattern})\z' |
| 42 | |
| 43 | def match_dirs(self, pattern): |
| 44 | """ |