Finds URLs of the form protocol:// or protocol:: This also matches for http[s]://, which were the only remote URLs supported in <=v0.16.2.
(path: str)
| 724 | |
| 725 | |
| 726 | def is_remote_uri(path: str) -> bool: |
| 727 | """Finds URLs of the form protocol:// or protocol:: |
| 728 | |
| 729 | This also matches for http[s]://, which were the only remote URLs |
| 730 | supported in <=v0.16.2. |
| 731 | """ |
| 732 | return bool(re.search(r"^[a-zA-Z][a-zA-Z0-9]*(\://|\:\:)", path)) |
| 733 | |
| 734 | |
| 735 | def strip_uri_params(uri: str) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…