From c98f67fbf34d96d9e8f7c168a1620b6b754285f6 Mon Sep 17 00:00:00 2001 From: doctor_dev Date: Fri, 30 May 2025 19:40:25 +0000 Subject: [PATCH] minor fix for conf integraion in utils --- scripts/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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