merge-requests/30/head
Bob Mottram 2021-06-23 22:48:01 +01:00
parent d2d31d12a6
commit 517740bbd6
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ def removeDomainPort(domain: str) -> str:
def getPortFromDomain(domain: str) -> int: def getPortFromDomain(domain: str) -> int:
"""If the domain has a port number appended then return it """If the domain has a port number appended then return it
eg. mydomain.com:80 returns 80
""" """
if ':' in domain: if ':' in domain:
if domain.startswith('did:'): if domain.startswith('did:'):