1 | 1 | | import re |
| 2 | + | import sys |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | class CaseConverter: |
| skipped 40 lines |
45 | 46 | | return '' |
46 | 47 | | |
47 | 48 | | @classmethod |
48 | | - | def make_profile_url_regexp(self, url: str, username_regexp: str = '') -> re.Pattern: |
| 49 | + | def make_profile_url_regexp(self, url: str, username_regexp: str = ''): |
49 | 50 | | url_main_part = self.extract_main_part(url) |
50 | 51 | | for c in self.UNSAFE_SYMBOLS: |
51 | 52 | | url_main_part = url_main_part.replace(c, f'\\{c}') |
| skipped 6 lines |