UNPKG

react-native-svg

Version:
8 lines (7 loc) 221 B
export default function extractPolyPoints(points) { const polyPoints = Array.isArray(points) ? points.join(',') : points; return polyPoints .replace(/[^e]-/, ' -') .split(/(?:\s+|\s*,\s*)/g) .join(' '); }