Fix ATIS not updating: change return to continue in updateAtisMap

Co-authored-by: ltoenning <1716810+ltoenning@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-29 16:58:13 +00:00
parent 5eaf934cf3
commit f546615748

View File

@@ -2433,9 +2433,9 @@ namespace swift::core::fsd
//! \fixme: Anything better as this stupid code here?
thread_local const QRegularExpression RegExp(R"([\n\t\r])");
const QString test = fixed.toLower().remove(RegExp);
if (test == "z") return;
if (test.startsWith("z") && test.length() == 2) return; // z1, z2, ..
if (test.length() == 1) return; // sometimes just z
if (test == "z") continue;
if (test.startsWith("z") && test.length() == 2) continue; // z1, z2, ..
if (test.length() == 1) continue; // sometimes just z
// append
if (!atisMessage.isEmpty()) atisMessage.appendMessage("\n");