mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Reset comment at start of line iteration
Moved the comment reset to the beginning of each line iteration in handleInput(), ensuring comments are cleared before processing each row. This prevents comments from persisting across lines and fixes potential data carryover issues.
This commit is contained in:
parent
03f44eb725
commit
9eb596351d
1 changed files with 3 additions and 1 deletions
|
|
@ -188,6 +188,9 @@ function handleInput() {
|
|||
var rst_s = null;
|
||||
var rst_r = null;
|
||||
|
||||
// Reset comment at the beginning of each line iteration
|
||||
comment = "";
|
||||
|
||||
// Extract comment from angle brackets < >
|
||||
var commentMatch = row.match(/<([^>]+)>/);
|
||||
if (commentMatch) {
|
||||
|
|
@ -472,7 +475,6 @@ function handleInput() {
|
|||
callsign = "";
|
||||
sotaWwff = "";
|
||||
gridsquare = "";
|
||||
comment = "";
|
||||
// Don't reset satellite info - it persists for multiple QSOs
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue