vault backup: 2026-05-06 17:32:43
This commit is contained in:
5
.obsidian/plugins/image-captions/main.js
vendored
5
.obsidian/plugins/image-captions/main.js
vendored
@@ -108,8 +108,11 @@ var ImageCaptions = class extends import_obsidian2.Plugin {
|
||||
if (this.settings.captionRegex) {
|
||||
try {
|
||||
const match = captionText.match(new RegExp(this.settings.captionRegex));
|
||||
if (match && match[1])
|
||||
if (match && match[1]) {
|
||||
captionText = match[1];
|
||||
} else {
|
||||
captionText = "";
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user