diff --git a/scripts/utils.py b/scripts/utils.py index 904b75d..78530a1 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -60,7 +60,7 @@ def IsXFTPServerValid(url: str) -> bool: Returns True if URL is a valid SimpleX XFTP Server URL False otherwise """ - return conf.RecognizeSimplexType(url) == 'xftp' + return RecognizeSimplexType(url) == 'xftp' # stub function def IsSMPServerValid(url: str) -> bool: @@ -68,7 +68,7 @@ def IsSMPServerValid(url: str) -> bool: Returns True if URL is a valid SimpleX SMP Server URL False otherwise """ - return conf.RecognizeSimplexType(url) == 'smp' + return RecognizeSimplexType(url) == 'smp' def IsClearnetLinkValid(url: str) -> bool: """ @@ -242,7 +242,7 @@ def IsNameValid(name: str) -> bool: Check the parameter name only contains [a-zA-Z0-9] and is 64 chars long. """ try: - return bool(VALID_NAME_PATTERN.fullmatch(name.strip())) + return bool(conf.VALID_NAME_PATTERN.fullmatch(name.strip())) except Exception: return False