mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +08:00
bug-fix: exclude all whitespaces except space in file name
This commit is contained in:
parent
62f4471b46
commit
b2690a42e7
@ -46,7 +46,7 @@ const QString VUtils::c_imageLinkRegExp = QString("\\!\\[([^\\]]*)\\]\\(([^\\)\"
|
|||||||
|
|
||||||
const QString VUtils::c_imageTitleRegExp = QString("[\\w\\(\\)@#%\\*\\-\\+=\\?<>\\,\\.\\s]*");
|
const QString VUtils::c_imageTitleRegExp = QString("[\\w\\(\\)@#%\\*\\-\\+=\\?<>\\,\\.\\s]*");
|
||||||
|
|
||||||
const QString VUtils::c_fileNameRegExp = QString("[^\\\\/:\\*\\?\"<>\\|]*");
|
const QString VUtils::c_fileNameRegExp = QString("(?:[^\\\\/:\\*\\?\"<>\\|\\s]| )*");
|
||||||
|
|
||||||
const QString VUtils::c_fencedCodeBlockStartRegExp = QString("^(\\s*)```([^`\\s]*)\\s*[^`]*$");
|
const QString VUtils::c_fencedCodeBlockStartRegExp = QString("^(\\s*)```([^`\\s]*)\\s*[^`]*$");
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ public:
|
|||||||
static const QString c_imageTitleRegExp;
|
static const QString c_imageTitleRegExp;
|
||||||
|
|
||||||
// Regular expression for file/directory name.
|
// Regular expression for file/directory name.
|
||||||
// Forbidden char: \/:*?"<>|
|
// Forbidden char: \/:*?"<>| and whitespaces except space.
|
||||||
static const QString c_fileNameRegExp;
|
static const QString c_fileNameRegExp;
|
||||||
|
|
||||||
// Regular expression for fenced code block.
|
// Regular expression for fenced code block.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user