mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve missing assets checking https://github.com/siyuan-note/siyuan/issues/13891
This commit is contained in:
parent
2e26a74d12
commit
197e86476a
1 changed files with 9 additions and 0 deletions
|
|
@ -965,6 +965,15 @@ func MissingAssets() (ret []string) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.Contains(strings.ToLower(dest), ".pdf/") {
|
||||||
|
if idx := strings.LastIndex(dest, "/"); -1 < idx {
|
||||||
|
if ast.IsNodeIDPattern(dest[idx+1:]) {
|
||||||
|
// PDF 标注不计入 https://github.com/siyuan-note/siyuan/issues/13891
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if "" == assetsPathMap[dest] {
|
if "" == assetsPathMap[dest] {
|
||||||
if strings.HasPrefix(dest, "assets/.") {
|
if strings.HasPrefix(dest, "assets/.") {
|
||||||
// Assets starting with `.` should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821
|
// Assets starting with `.` should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue