Tweaked regex for bands

这个提交包含在:
Andreas 2023-10-26 15:25:34 +02:00
父节点 8632b05cca
当前提交 a6f51cf29a

查看文件

@ -153,8 +153,8 @@ function handleInput() {
} else if (item.match(/^CW$|^SSB$|^FM$|^AM$|^PSK$|^FT8$/i)) { } else if (item.match(/^CW$|^SSB$|^FM$|^AM$|^PSK$|^FT8$/i)) {
mode = item.toUpperCase(); mode = item.toUpperCase();
} else if ( } else if (
item.match(/^[1-9]?\d\d[Mm]$/) || item.match(/^[0-9]{1,4}(?:m|cm|mm)$/) ||
item.toUpperCase() === "70CM" item.match(/^(sat)$/)
) { ) {
band = item.toUpperCase(); band = item.toUpperCase();
freq = 0; freq = 0;
@ -417,7 +417,7 @@ for (const [key, value] of Object.entries(Bands)) {
<input type="text" class="form-control text-uppercase" id="${key.slice( <input type="text" class="form-control text-uppercase" id="${key.slice(
1 1
)}CW" value="${value.cw}"> )}CW" value="${value.cw}">
</div> </div>
</div> </div>
<div class="col-3"> <div class="col-3">
<div class="form-group"> <div class="form-group">
@ -425,7 +425,7 @@ for (const [key, value] of Object.entries(Bands)) {
<input type="text" class="form-control text-uppercase" id="${key.slice( <input type="text" class="form-control text-uppercase" id="${key.slice(
1 1
)}SSB" value="${value.ssb}"> )}SSB" value="${value.ssb}">
</div> </div>
</div> </div>
<div class="col-3"> <div class="col-3">
<div class="form-group"> <div class="form-group">
@ -433,9 +433,9 @@ for (const [key, value] of Object.entries(Bands)) {
<input type="text" class="form-control text-uppercase" id="${key.slice( <input type="text" class="form-control text-uppercase" id="${key.slice(
1 1
)}DIGI" value="${value.digi}"> )}DIGI" value="${value.digi}">
</div> </div>
</div> </div>
</div> </div>
`; `;
} }
@ -453,14 +453,14 @@ $(".js-download-adif").click(function () {
const adifHeader = ` const adifHeader = `
ADIF export from Simple fast log entry by Petr, OK2CQR ADIF export from Simple fast log entry by Petr, OK2CQR
Internet: https://sfle.ok2cqr.com Internet: https://sfle.ok2cqr.com
<ADIF_VER:5>2.2.1 <ADIF_VER:5>2.2.1
<PROGRAMID:4>SFLE <PROGRAMID:4>SFLE
<PROGRAMVERSION:5>0.0.1 <PROGRAMVERSION:5>0.0.1
<EOH> <EOH>
`; `;
if (false === isBandModeEntered()) { if (false === isBandModeEntered()) {