Skip to content

Commit 67fef0c

Browse files
committed
feat: Regex match subfolders
1 parent 792c0c3 commit 67fef0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class DrawioPlugin extends Plugin {
7070
const imageElement = blockElement.querySelector("img") as HTMLImageElement;
7171
if (imageElement) {
7272
const imageURL = imageElement.getAttribute("data-src");
73-
const imageURLRegex = /^assets\/(.*\/)?drawio-.+\.(?:svg|png)$/;
73+
const imageURLRegex = /^assets\/(.+\/)?drawio-.+\.(?:svg|png)$/;
7474
if (!imageURLRegex.test(imageURL)) return;
7575
this.getDrawioImageInfo(imageURL, false).then((imageInfo) => {
7676
if (imageInfo) {

0 commit comments

Comments
 (0)