From 89faf52e57308aa26209c16f1c3a841494f418cf Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sun, 28 Jan 2024 22:48:28 +0100 Subject: [PATCH] adjusted regex for allowing all types of callsigns --- modem/api_validations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modem/api_validations.py b/modem/api_validations.py index e3b50021..97bbd14d 100644 --- a/modem/api_validations.py +++ b/modem/api_validations.py @@ -1,7 +1,8 @@ import re def validate_freedata_callsign(callsign): - regexp = "^[a-zA-Z]+\d+\w+-\d{1,2}$" + #regexp = "^[a-zA-Z]+\d+\w+-\d{1,2}$" + regexp = "^[A-Za-z0-9]{1,7}-[0-255]$" return re.compile(regexp).match(callsign) is not None def validate_message_attachment(attachment):