Fixed callsign linkification in FT8/FT4 modes.

This commit is contained in:
Marat Fayzullin 2024-09-14 17:38:47 -04:00
parent a3f6eef52b
commit b43452e2a2
1 changed files with 2 additions and 2 deletions

View File

@ -91,9 +91,9 @@ WsjtMessagePanel.prototype.pushMessage = function(msg) {
var matches;
if (this.qsoModes.indexOf(msg['mode']) >= 0) {
matches = linkedmsg.match(/^(.*?)([A-Z0-9]+)\s([A-Z0-9]+)\s(([A-R]{2}[0-9]{2})|(R?[+\-]?[0-9]{2})|(RRR))$/);
matches = linkedmsg.match(/^(.*?)([A-Z0-9\/]+)\s([A-Z0-9\/]+)\s(([A-R]{2}[0-9]{2})|(R?[+\-]?[0-9]{2})|(RRR))$/);
if (matches) {
var destination = matches[2]!=='CQ' && matches[2]!=='DX'?
var destination = matches[2]!=='CQ' && matches[2]!=='DX' && matches[2]!=='TEST'?
Utils.linkifyCallsign(matches[2]) : matches[2];
var locator = matches[5] && matches[5]!=='RR73'?
Utils.linkifyLocator(matches[5]) : matches[4];