mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Make wildcard matcher case insensitive.
This commit is contained in:
@@ -109,6 +109,13 @@ void TestWildcardMatcher::testMatchFollowingWildcards()
|
||||
verifyMatch(pattern);
|
||||
}
|
||||
|
||||
void TestWildcardMatcher::testCaseSensitivity()
|
||||
{
|
||||
initMatcher(DefaultText.toUpper());
|
||||
QString pattern("some t**t");
|
||||
verifyMatch(pattern);
|
||||
}
|
||||
|
||||
void TestWildcardMatcher::initMatcher(QString text)
|
||||
{
|
||||
m_matcher = new WildcardMatcher(text);
|
||||
|
||||
@@ -39,6 +39,7 @@ private Q_SLOTS:
|
||||
void testNoMatchWithMultipleWildcards();
|
||||
void testMatchJustWildcard();
|
||||
void testMatchFollowingWildcards();
|
||||
void testCaseSensitivity();
|
||||
|
||||
private:
|
||||
static const QString DefaultText;
|
||||
|
||||
Reference in New Issue
Block a user