From 54284cbdf69bca7bf59b9724077ff304264f7349 Mon Sep 17 00:00:00 2001 From: Kim Meyer Date: Sun, 19 Apr 2026 17:01:43 +0200 Subject: [PATCH] feat: remove GitLab image dimension text --- src/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 9ed95d5..dc31a19 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -92,7 +92,8 @@ export const migrateAttachments = async ( s3: S3Settings | undefined, gitlabHelper: GitlabHelper ) => { - const regexp = /(!?)\[([^\]]+)\]\((\/uploads[^)]+)\)/g; + // Also matches optional GitLab-specific {width=... height=...} attributes after the link + const regexp = /(!?)\[([^\]]+)\]\((\/uploads[^)]+)\)(\{[^}]*\})?/g; // Maps link offset to a new name in S3 const offsetToAttachment: {