mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fixed detection of cw rst if 3 digits are given
This commit is contained in:
@@ -117,7 +117,7 @@ function handleInput() {
|
||||
)
|
||||
) {
|
||||
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) {
|
||||
rst_s = item;
|
||||
} else {
|
||||
@@ -527,6 +527,9 @@ function getReportByMode(rst, mode) {
|
||||
if (rst.length === 1) {
|
||||
return "5" + rst;
|
||||
}
|
||||
if (rst.length === 3) {
|
||||
return rst.slice(0, 2);
|
||||
}
|
||||
|
||||
return rst;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user