kopia lustrzana https://github.com/magicbug/Cloudlog
fixed detection of cw rst if 3 digits are given
rodzic
e6c485fc27
commit
4c9241e4c8
|
@ -117,7 +117,7 @@ function handleInput() {
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
callsign = item.toUpperCase();
|
callsign = item.toUpperCase();
|
||||||
} else if (itemNumber > 0 && item.match(/^\d{1,2}$/)) {
|
} else if (itemNumber > 0 && item.match(/^\d{1,3}$/)) {
|
||||||
if (rst_s === null) {
|
if (rst_s === null) {
|
||||||
rst_s = item;
|
rst_s = item;
|
||||||
} else {
|
} else {
|
||||||
|
@ -527,6 +527,9 @@ function getReportByMode(rst, mode) {
|
||||||
if (rst.length === 1) {
|
if (rst.length === 1) {
|
||||||
return "5" + rst;
|
return "5" + rst;
|
||||||
}
|
}
|
||||||
|
if (rst.length === 3) {
|
||||||
|
return rst.slice(0, 2);
|
||||||
|
}
|
||||||
|
|
||||||
return rst;
|
return rst;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue