Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Oct 18, 2023
1 parent caa18fa commit 5ca9073
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/getImageURI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export function getImageURI({

if (isSVG(parsedURI) || isSVGDataUri(parsedURI)) {
// svg - image_data
const rawSVG = convertToRawSVG(parsedURI)?.replace(/\s*(<[^>]+>)\s*/g, '$1');
const rawSVG = convertToRawSVG(parsedURI)?.replace(
/\s*(<[^>]+>)\s*/g,
'$1'
);
if (!rawSVG) return null;

const data = _sanitize(rawSVG, jsdomWindow);
Expand Down

0 comments on commit 5ca9073

Please sign in to comment.