From 02f9db616c9d22b644e92803d5cd55c95a234b55 Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Tue, 14 Dec 2021 15:09:28 +0530 Subject: [PATCH] Bug fix: use only iswlower() in RankedMatch::is_word_boundary() --- src/ranked_match.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ranked_match.cc b/src/ranked_match.cc index 1e09eb94..2a44d831 100644 --- a/src/ranked_match.cc +++ b/src/ranked_match.cc @@ -174,7 +174,7 @@ RankedMatch::RankedMatch(StringView candidate, StringView query) static bool is_word_boundary(Codepoint prev, Codepoint c) { return (iswalnum((wchar_t)prev)) != iswalnum((wchar_t)c) or - (iswlower((wchar_t)prev) != islower((wchar_t)c)); + (iswlower((wchar_t)prev) != iswlower((wchar_t)c)); } bool RankedMatch::operator<(const RankedMatch& other) const