mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] cfiledialog: fix regex
This commit is contained in:
@ -132,7 +132,7 @@ bool CFileDialogWrapper::modalSaveAs(QString& fileName, int selected)
|
||||
QFileInfo info(fileName);
|
||||
_ext = info.suffix();
|
||||
|
||||
QRegularExpression reFilter("([\\w\\s]+\\(\\*\\."+_ext+"+\\))", QRegularExpression::CaseInsensitiveOption);
|
||||
QRegularExpression reFilter("([^;]+\\(\\*\\."+_ext+"\\))", QRegularExpression::CaseInsensitiveOption);
|
||||
QRegularExpressionMatch match;
|
||||
if ( !m_filters.isEmpty() ) {
|
||||
_filters = m_filters;
|
||||
|
||||
Reference in New Issue
Block a user