CHecks if the URL format is valid. Args: url (str): The URL to check. Returns: bool: True if the URL format is valid, False otherwise
(url: str)
| 205 | |
| 206 | @staticmethod |
| 207 | def _is_valid_url(url: str) -> bool: |
| 208 | """ |
| 209 | CHecks if the URL format is valid. |
| 210 | |
| 211 | Args: |
| 212 | url (str): The URL to check. |
| 213 | |
| 214 | Returns: |
| 215 | bool: True if the URL format is valid, False otherwise |
| 216 | """ |
| 217 | if re.fullmatch(ParseNode.url_pattern, url) is not None: |
| 218 | return True |
| 219 | return False |