astro-ghostcms/.pnpm-store/v3/files/dc/0d9bd6af3852a8e86a1d980f767...

8 lines
274 B
Plaintext

'use strict';
function trimSVG(str) {
return str.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').replace(/(\s)+\/>/g, "/>").trim();
}
exports.trimSVG = trimSVG;