fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
9 lines (8 loc) • 421 B
JavaScript
import { normalizeWs } from "./normalizeWhiteSpace.mjs";
import { reNum } from "../../parser/constants.mjs";
//#region src/util/internals/cleanupSvgAttribute.ts
const regex = new RegExp(`(${reNum})`, "gi");
const cleanupSvgAttribute = (attributeValue) => normalizeWs(attributeValue.replace(regex, " $1 ").replace(/,/gi, " "));
//#endregion
export { cleanupSvgAttribute };
//# sourceMappingURL=cleanupSvgAttribute.mjs.map