import { reNum } from '../../parser/constants.mjs';
import { normalizeWs } from './normalizeWhiteSpace.mjs';

const regex = new RegExp("(".concat(reNum, ")"), 'gi');
const cleanupSvgAttribute = attributeValue => normalizeWs(attributeValue.replace(regex, ' $1 ')
// replace annoying commas and arbitrary whitespace with single spaces
.replace(/,/gi, ' '));

export { cleanupSvgAttribute };
//# sourceMappingURL=cleanupSvgAttribute.mjs.map
