From 0349cf1b7c2a6a26b99966b26c80859c7fa70c22 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Wed, 21 Feb 2024 16:55:45 +0100 Subject: [PATCH] callsign related adustments... --- gui/src/js/freedata.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/js/freedata.ts b/gui/src/js/freedata.ts index 4ef51720..54c7e6c6 100644 --- a/gui/src/js/freedata.ts +++ b/gui/src/js/freedata.ts @@ -64,7 +64,7 @@ export function sortByPropertyDesc(property) { * @returns true or false if callsign appears to be valid with an SSID */ export function validateCallsignWithSSID(callsign: string) { - var patt = new RegExp("^[A-Z]+[0-9][A-Z]*-(1[0-5]|[0-9])$"); + var patt = new RegExp("^[A-Za-z0-9]{1,7}-[0-9]{1,3}$"); callsign = callsign; if ( callsign === undefined || @@ -85,7 +85,7 @@ export function validateCallsignWithSSID(callsign: string) { * @returns true or false if callsign appears to be valid without an SSID */ export function validateCallsignWithoutSSID(callsign: string) { - var patt = new RegExp("^[A-Z]+[0-9][A-Z]+$"); + var patt = new RegExp("^[A-Za-z0-9]{1,7}$"); if ( callsign === undefined ||