{"version":3,"file":"cleanupSvgAttribute.mjs","sources":["../../../../src/util/internals/cleanupSvgAttribute.ts"],"sourcesContent":["import { reNum } from '../../parser/constants';\n\nconst regex = new RegExp(`(${reNum})`, 'gi');\n\nexport const cleanupSvgAttribute = (attributeValue: string) =>\n  attributeValue\n    .replace(regex, ' $1 ')\n    // replace annoying commas and arbitrary whitespace with single spaces\n    .replace(/,/gi, ' ')\n    .replace(/\\s+/gi, ' ');\n"],"names":["regex","RegExp","reNum","cleanupSvgAttribute","attributeValue","replace"],"mappings":";;AAEA,MAAMA,KAAK,GAAG,IAAIC,MAAM,CAAC,IAAIC,KAAK,CAAA,CAAA,CAAG,EAAE,IAAI,CAAC;AAErC,MAAMC,mBAAmB,GAAIC,cAAsB,IACxDA,cAAc,CACXC,OAAO,CAACL,KAAK,EAAE,MAAM;AACtB;AAAA,CACCK,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CACnBA,OAAO,CAAC,OAAO,EAAE,GAAG;;;;"}