Skip to content

Commit

Permalink
Make ambiguous classification less strict with strings containing 1 p…
Browse files Browse the repository at this point in the history
…rintf command
  • Loading branch information
Blake-Madden committed Dec 22, 2024
1 parent 36dd55d commit 6db8d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i18n_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1649,14 +1649,14 @@ namespace i18n_check
// That could use a context also.
std::wstring errorInfo;
const auto printfCmds = load_cpp_printf_commands(str, errorInfo);
if (printfCmds.size() >= 3 || (!printfCmds.empty() && str.length() < 16))
if (printfCmds.size() >= 3 || (!printfCmds.empty() && str.length() < 10))
{
return true;
}

// String with many "%1" commands or a short string with at least one?
const auto posCmds = load_positional_commands(str);
if (posCmds.size() >= 3 || (!posCmds.empty() && str.length() < 16))
if (posCmds.size() >= 3 || (!posCmds.empty() && str.length() < 10))
{
return true;
}
Expand Down

0 comments on commit 6db8d61

Please sign in to comment.