From a6f51cf29acc523c4f7a316249ece610559da133 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:25:34 +0200 Subject: [PATCH] Tweaked regex for bands --- assets/js/sections/simplefle.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/js/sections/simplefle.js b/assets/js/sections/simplefle.js index c5836d63..b3a5f4a1 100644 --- a/assets/js/sections/simplefle.js +++ b/assets/js/sections/simplefle.js @@ -153,8 +153,8 @@ function handleInput() { } else if (item.match(/^CW$|^SSB$|^FM$|^AM$|^PSK$|^FT8$/i)) { mode = item.toUpperCase(); } else if ( - item.match(/^[1-9]?\d\d[Mm]$/) || - item.toUpperCase() === "70CM" + item.match(/^[0-9]{1,4}(?:m|cm|mm)$/) || + item.match(/^(sat)$/) ) { band = item.toUpperCase(); freq = 0; @@ -417,7 +417,7 @@ for (const [key, value] of Object.entries(Bands)) { - +