diff --git a/lib/message/mu-contact.cc b/lib/message/mu-contact.cc index acf91230..4ce9a5c9 100644 --- a/lib/message/mu-contact.cc +++ b/lib/message/mu-contact.cc @@ -1,5 +1,5 @@ /* -** Copyright (C) 2022 Dirk-Jan C. Binnema +** Copyright (C) 2022-2023 Dirk-Jan C. Binnema ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of the GNU General Public License as published by the @@ -32,9 +32,9 @@ using namespace Mu; std::string Contact::display_name() const { - auto needs_quoting= [](const std::string& n) { + const auto needs_quoting= [](const std::string& n) { for (auto& c: n) - if (c == ',' || c == '"') + if (c == ',' || c == '"' || c == '@') return true; return false; };