From cf37622365e721c580e0a9422a935b77fc8eab0a Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Mon, 5 Feb 2024 21:57:56 +0100 Subject: [PATCH] adjusted callsign regex --- modem/api_validations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modem/api_validations.py b/modem/api_validations.py index 5e397e53..b07cec3e 100644 --- a/modem/api_validations.py +++ b/modem/api_validations.py @@ -2,7 +2,7 @@ import re def validate_freedata_callsign(callsign): #regexp = "^[a-zA-Z]+\d+\w+-\d{1,2}$" - regexp = "^[A-Za-z0-9]{1,7}-[0-9]$" # still broken - we need to allow all ssids form 0 - 255 + regexp = "^[A-Za-z0-9]{1,7}-[0-9]{1,3}$" # still broken - we need to allow all ssids form 0 - 255 return re.compile(regexp).match(callsign) is not None def validate_message_attachment(attachment):