mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +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*"
|
||||
"\\)");
|
||||
|
||||
const QString VUtils::c_imageTitleRegExp = QString("[\\w\\(\\)@#%\\*\\-\\+=\\?<>\\,\\.\\s]*");
|
||||
const QString VUtils::c_imageTitleRegExp = QString("[^\\[\\]]*");
|
||||
|
||||
const QString VUtils::c_linkRegExp = QString("\\[([^\\]]*)\\]\\(\\s*([^\\)\"'\\s]+)\\s*"
|
||||
"((\"[^\"\\)\\n]*\")|('[^'\\)\\n]*'))?\\s*"
|
||||
|
@ -38,9 +38,7 @@ bool VTextBlockData::insertPreviewInfo(VPreviewInfo *p_info)
|
||||
tsUpdated = true;
|
||||
break;
|
||||
} else if (p_info->m_imageInfo.intersect(ele->m_imageInfo)) {
|
||||
// The new one intersect with an old one.
|
||||
// Remove the old one.
|
||||
Q_ASSERT(ele->m_timeStamp < p_info->m_timeStamp);
|
||||
// Two preview intersect.
|
||||
delete ele;
|
||||
it = m_previews.erase(it);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user