UNPKG

ingenious-flow-designer

Version:

[演示地址](http://antd-vben5-pro.madong.tech/)

5 lines (4 loc) 185 B
export function parseSvg(svgStr: string): string[] { const matches = svgStr.match(/d="[^"]*"/g) || []; return matches.map(match => match.replace('d="', '').replace('"', '')); }