pull/2674/head
Robert Sammelson 2023-11-11 01:25:21 -05:00
rodzic c5f9809d73
commit 15f52f99ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: BEA2C00D29709D51
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -164,13 +164,13 @@ function handleInput() {
qsotime = qsotime.slice(0, -2) + item; qsotime = qsotime.slice(0, -2) + item;
} else if ( } else if (
item.match( item.match(
/^[A-Z0-9]{1,3}\/[A-Z]{2}-\d{3}|[AENOS]*[FNSUACA]-\d{3}|(?!.*FF)[A-Z0-9]{1,3}-\d{4}|[A-Z0-9]{1,3}[F]{2}-\d{4}$/i /^[A-Z0-9]{1,3}\/[A-Z]{2}-\d{3}|[AENOS]*[FNSUACA]-\d{3}|(?!.*FF)[A-Z0-9]{1,3}-\d{4,5}|[A-Z0-9]{1,3}[F]{2}-\d{4}$/i
) )
) { ) {
sotaWwff = item.toUpperCase(); sotaWwff = item.toUpperCase();
} else if ( } else if (
item.match( item.match(
/([a-zA-Z0-9]{1,3}[0123456789][a-zA-Z0-9]{0,3}[a-zA-Z])|.*\/([a-zA-Z0-9]{1,3}[0123456789][a-zA-Z0-9]{0,3}[a-zA-Z])|([a-zA-Z0-9]{1,3}[0123456789][a-zA-Z0-9]{0,3}[a-zA-Z])\/.*/ /([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])|.*\/([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])|([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])\/.*/
) )
) { ) {
callsign = item.toUpperCase(); callsign = item.toUpperCase();
@ -423,7 +423,7 @@ function getFreqFromBand(band, mode) {
if (bandData) { if (bandData) {
return bandData[settingsMode] / 1000000; return bandData[settingsMode] / 1000000;
} }
} }
@ -503,7 +503,7 @@ function isExampleDataEntered() {
let isExampleData = false; let isExampleData = false;
if (textarea.value.startsWith("*example-data*")) { if (textarea.value.startsWith("*example-data*")) {
isExampleData = true; isExampleData = true;
}; };
return isExampleData; return isExampleData;
@ -559,7 +559,7 @@ function isIOTA(value) {
} }
function isPOTA(value) { function isPOTA(value) {
if (value.match(/^(?!.*FF)[A-Z0-9]{1,3}-\d{4}$/)) { if (value.match(/^(?!.*FF)[A-Z0-9]{1,3}-\d{4,5}$/)) {
return true; return true;
} }
} }