We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19e8411 + 54284cb commit 09c54c1Copy full SHA for 09c54c1
1 file changed
src/utils.ts
@@ -92,7 +92,8 @@ export const migrateAttachments = async (
92
s3: S3Settings | undefined,
93
gitlabHelper: GitlabHelper
94
) => {
95
- const regexp = /(!?)\[([^\]]+)\]\((\/uploads[^)]+)\)/g;
+ // Also matches optional GitLab-specific {width=... height=...} attributes after the link
96
+ const regexp = /(!?)\[([^\]]+)\]\((\/uploads[^)]+)\)(\{[^}]*\})?/g;
97
98
// Maps link offset to a new name in S3
99
const offsetToAttachment: {
0 commit comments