diff --git a/src/core/Database.cpp b/src/core/Database.cpp index a4d66313..94b41cdf 100644 --- a/src/core/Database.cpp +++ b/src/core/Database.cpp @@ -570,10 +570,11 @@ QString Database::writeDatabase(QIODevice* device) * @param filePath Path to the file to backup * @return */ + bool Database::backupDatabase(QString filePath) { QString backupFilePath = filePath; - auto re = QRegularExpression("(?:\\.kdbx)?$", QRegularExpression::CaseInsensitiveOption); + auto re = QRegularExpression("\\.kdbx$|(?