From a2be63e42b327c0eea709ea961d6cc5561798a9d Mon Sep 17 00:00:00 2001 From: AT Date: Wed, 17 Jul 2024 16:08:09 -0400 Subject: [PATCH] Case insensitive compare that pairs with issue #2609 and previous commit (#2684) 9e4991aced0571eb8db1fc07dfb7a5000932ed33 that allowed case insensitive matches of file extensions. Signed-off-by: Adam Treat --- gpt4all-chat/database.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/database.h b/gpt4all-chat/database.h index 5538ab61..90312290 100644 --- a/gpt4all-chat/database.h +++ b/gpt4all-chat/database.h @@ -45,7 +45,7 @@ struct DocumentInfo size_t currentPosition = 0; bool currentlyProcessing = false; bool isPdf() const { - return doc.suffix() == u"pdf"_s; + return doc.suffix().compare(u"pdf"_s, Qt::CaseInsensitive) == 0; } };