let bar = "<img src=\"/assets/img/screenshot-scripts.png\" alt=\"scripts screenshot\" class=\"half center\" /><img src=\"/assets/img/screenshot-scripts-sed.png\" alt=\"scripts sed screenshot\" />";
bar = bar.replaceAll(/src=\\"(.*)\\"/gi, 'src="https://blog.jonesrussell.xyz/$1"');
This does not produce the desired results of https://blog.jonesrussell42.xyz being prepended to all image src's.
Aucun commentaire:
Enregistrer un commentaire