diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2019-07-13 08:45:26 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2019-07-13 19:02:20 +0000 |
commit | 9f136678be8f58534607d6d8ea7c29cdf746da75 (patch) | |
tree | dd4b297456331f9bcc29bee0567806e0c36f1c53 /src/libs | |
parent | 52a58afc794c441bb32bea6ca7f6ac021e0c372b (diff) |
FuzzyMatcher: Handle digits as camel hump
Allow searching for "Fancy4PartThingy" with the
more intuitive pattern "f4pt" as well as with the
pattern "fpt" that already worked before.
Fixes: QTCREATORBUG-22671
Change-Id: I3a7c1a5b7f57d2f2bdd7d0c6e23b46f6bbb64d77
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/utils/fuzzymatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/fuzzymatcher.cpp b/src/libs/utils/fuzzymatcher.cpp index 60b5d3aaa2..50c3fb7fba 100644 --- a/src/libs/utils/fuzzymatcher.cpp +++ b/src/libs/utils/fuzzymatcher.cpp @@ -75,7 +75,7 @@ QRegularExpression FuzzyMatcher::createRegExp( const QLatin1String upperSnakeWordContinuation("[A-Z0-9]*_"); keyRegExp += "(?:"; for (const QChar &c : pattern) { - if (!c.isLetter()) { + if (!c.isLetterOrNumber()) { if (c == question) { keyRegExp += '.'; plainRegExp += ").("; |