adjusted regex for allowing all types of callsigns

This commit is contained in:
DJ2LS 2024-01-28 22:48:28 +01:00
parent 4ccc509992
commit 89faf52e57

View file

@ -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):