From 86a31c0ea58e6780a8a7aeb99b1f87c6ae90ade5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 7 Oct 2021 22:28:43 +0200 Subject: [PATCH] Use QRegularExpression --- YACReaderLibrary/library_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 2af31787..c148745b 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -1582,7 +1582,7 @@ void LibraryWindow::addFolderToCurrentIndex() "", &ok); // chars not supported in a folder's name: / \ : * ? " < > | - QRegExp invalidChars("\\/\\:\\*\\?\\\"\\<\\>\\|\\\\"); // TODO this regexp is not properly written + QRegularExpression invalidChars("\\/\\:\\*\\?\\\"\\<\\>\\|\\\\"); // TODO this regexp is not properly written bool isValid = !newFolderName.contains(invalidChars); if (ok && !newFolderName.isEmpty() && isValid) {