We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7e5566 commit 8631e8dCopy full SHA for 8631e8d
1 file changed
src/contacts/Contact.cpp
@@ -167,7 +167,9 @@ qreal Contact::matchesSearch(const QString &searchString) const
167
qreal maxDist = 0;
168
169
// Phone number
170
- if ((searchString.startsWith("+") && searchString.length() > 4) || (!searchString.startsWith("+") && searchString.length() > 2)) {
+ if (((searchString.startsWith("+") || searchString.startsWith("0"))
171
+ && searchString.length() > 4)
172
+ || (!searchString.startsWith("+") && searchString.length() > 2)) {
173
for (const auto &phoneNumber : std::as_const(m_phoneNumbers)) {
174
if (phoneNumber.number.contains(searchString)) {
175
return 1.0;
0 commit comments