{"version":3,"file":"cleanupSvgAttribute.mjs","sources":["../../../../src/util/internals/cleanupSvgAttribute.ts"],"sourcesContent":["import { reNum } from '../../parser/constants';\nimport { normalizeWs } from './normalizeWhiteSpace';\n\nconst regex = new RegExp(`(${reNum})`, 'gi');\n\nexport const cleanupSvgAttribute = (attributeValue: string) =>\n  normalizeWs(\n    attributeValue\n      .replace(regex, ' $1 ')\n      // replace annoying commas and arbitrary whitespace with single spaces\n      .replace(/,/gi, ' '),\n  );\n"],"names":["regex","RegExp","reNum","cleanupSvgAttribute","attributeValue","normalizeWs","replace"],"mappings":";;;AAGA,MAAMA,KAAK,GAAG,IAAIC,MAAM,CAAC,IAAIC,KAAK,CAAA,CAAA,CAAG,EAAE,IAAI,CAAC;AAErC,MAAMC,mBAAmB,GAAIC,cAAsB,IACxDC,WAAW,CACTD,cAAc,CACXE,OAAO,CAACN,KAAK,EAAE,MAAM;AACtB;AAAA,CACCM,OAAO,CAAC,KAAK,EAAE,GAAG,CACvB;;;;"}