Cut down on a few false positives of auto-prepended callsigns with text override for words 3 characters or less.

This commit is contained in:
Jordan Sherer 2019-01-06 22:48:44 -05:00
parent bb3a710b88
commit bb24724587

View File

@ -1698,7 +1698,7 @@ QList<QPair<QString, int>> Varicode::buildMessageFrames(
#if AUTO_PREPEND_DIRECTED_ALLOW_TEXT_CALLSIGNS #if AUTO_PREPEND_DIRECTED_ALLOW_TEXT_CALLSIGNS
auto calls = Varicode::parseCallsigns(line); auto calls = Varicode::parseCallsigns(line);
bool lineStartsWithStandardCall = !calls.isEmpty() && line.startsWith(calls.first()) && calls.first().length() > 2; bool lineStartsWithStandardCall = !calls.isEmpty() && line.startsWith(calls.first()) && calls.first().length() > 3;
#else #else
bool lineStartsWithStandardCall = false; bool lineStartsWithStandardCall = false;
#endif #endif