Improve regular expression to support non ASCII letters.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-07-26 15:43:22 +03:00
parent f648860c69
commit 842d21016e

View file

@ -40,7 +40,7 @@
#include <QtDebug>
#include <QRegularExpression>
const QString baseFilenameRegExp = QStringLiteral("^[\\w\\-. ]+$");
const QString baseFilenameRegExp = QStringLiteral("^[\\p{L}\\p{Nd}\\-. _]+$");
bool DialogSaveLayout::havePdf = false;
bool DialogSaveLayout::tested = false;