mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
adjusted callsign regex
This commit is contained in:
parent
d81305d019
commit
cf37622365
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import re
|
||||||
|
|
||||||
def validate_freedata_callsign(callsign):
|
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-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
|
return re.compile(regexp).match(callsign) is not None
|
||||||
|
|
||||||
def validate_message_attachment(attachment):
|
def validate_message_attachment(attachment):
|
||||||
|
|
Loading…
Reference in a new issue