mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
callsign related adustments...
This commit is contained in:
parent
fbcc49019f
commit
0349cf1b7c
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ export function sortByPropertyDesc(property) {
|
||||||
* @returns true or false if callsign appears to be valid with an SSID
|
* @returns true or false if callsign appears to be valid with an SSID
|
||||||
*/
|
*/
|
||||||
export function validateCallsignWithSSID(callsign: string) {
|
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;
|
callsign = callsign;
|
||||||
if (
|
if (
|
||||||
callsign === undefined ||
|
callsign === undefined ||
|
||||||
|
@ -85,7 +85,7 @@ export function validateCallsignWithSSID(callsign: string) {
|
||||||
* @returns true or false if callsign appears to be valid without an SSID
|
* @returns true or false if callsign appears to be valid without an SSID
|
||||||
*/
|
*/
|
||||||
export function validateCallsignWithoutSSID(callsign: string) {
|
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 (
|
if (
|
||||||
callsign === undefined ||
|
callsign === undefined ||
|
||||||
|
|
Loading…
Reference in a new issue