How can i catch all Data Template Markdown Image to suffix it?

I receive from gitlab a json issues where users in the ticket system write in markdown.

Sometimes they add images that are like this: [/uploads/xxx.png](/uploads/xxx.png).

Is there a way to catch all his images and add the suffix https://gitlab.com/project-name on src=""

{
	"id": 26520014,
	"iid": 1,
	"description": "![Screenshot_2019-11-05_Rapport-opérationnel-WCAG_2_1-SNCA_docx](/uploads/c5e4a990e4cfb93fc33bada03b481986/Screenshot_2019-11-05_Rapport-opérationnel-WCAG_2_1-SNCA_docx.png)\n\n## Problème  \nLes svg inline de décoration peuvent dans certains cas être lus par les technologies d’assistance lors de la prise de focus.\n## Solution \nLes svg inline de décoration devrait avoir les attributs aria-hidden=”true” et focusable=”false” \n## Référence\nWCAG [1.1.1] Non-text Content\n## Impact utilisateur \nMajeur",
	"title": "SVG Inline",

You can use regex with the replaceRE function

1 Like