mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
fix image title constraint
This commit is contained in:
parent
45d4b28003
commit
185f6d0dcb
@ -47,7 +47,7 @@ const QString VUtils::c_imageLinkRegExp = QString("\\!\\[([^\\]]*)\\]\\(\\s*([^\
|
|||||||
"(=(\\d*)x(\\d*))?\\s*"
|
"(=(\\d*)x(\\d*))?\\s*"
|
||||||
"\\)");
|
"\\)");
|
||||||
|
|
||||||
const QString VUtils::c_imageTitleRegExp = QString("[\\w\\(\\)@#%\\*\\-\\+=\\?<>\\,\\.\\s]*");
|
const QString VUtils::c_imageTitleRegExp = QString("[^\\[\\]]*");
|
||||||
|
|
||||||
const QString VUtils::c_linkRegExp = QString("\\[([^\\]]*)\\]\\(\\s*([^\\)\"'\\s]+)\\s*"
|
const QString VUtils::c_linkRegExp = QString("\\[([^\\]]*)\\]\\(\\s*([^\\)\"'\\s]+)\\s*"
|
||||||
"((\"[^\"\\)\\n]*\")|('[^'\\)\\n]*'))?\\s*"
|
"((\"[^\"\\)\\n]*\")|('[^'\\)\\n]*'))?\\s*"
|
||||||
|
@ -38,9 +38,7 @@ bool VTextBlockData::insertPreviewInfo(VPreviewInfo *p_info)
|
|||||||
tsUpdated = true;
|
tsUpdated = true;
|
||||||
break;
|
break;
|
||||||
} else if (p_info->m_imageInfo.intersect(ele->m_imageInfo)) {
|
} else if (p_info->m_imageInfo.intersect(ele->m_imageInfo)) {
|
||||||
// The new one intersect with an old one.
|
// Two preview intersect.
|
||||||
// Remove the old one.
|
|
||||||
Q_ASSERT(ele->m_timeStamp < p_info->m_timeStamp);
|
|
||||||
delete ele;
|
delete ele;
|
||||||
it = m_previews.erase(it);
|
it = m_previews.erase(it);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user