We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792c0c3 commit 67fef0cCopy full SHA for 67fef0c
src/index.ts
@@ -70,7 +70,7 @@ export default class DrawioPlugin extends Plugin {
70
const imageElement = blockElement.querySelector("img") as HTMLImageElement;
71
if (imageElement) {
72
const imageURL = imageElement.getAttribute("data-src");
73
- const imageURLRegex = /^assets\/(.*\/)?drawio-.+\.(?:svg|png)$/;
+ const imageURLRegex = /^assets\/(.+\/)?drawio-.+\.(?:svg|png)$/;
74
if (!imageURLRegex.test(imageURL)) return;
75
this.getDrawioImageInfo(imageURL, false).then((imageInfo) => {
76
if (imageInfo) {
0 commit comments