Fix Polygon and Polyline

This commit is contained in:
Horcrux
2017-04-04 11:56:38 +08:00
parent 9df76e5668
commit e3b2f4c71a
3 changed files with 8 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
export default function (polyPoints) {
return polyPoints.replace(/-/, ' -').split(/(?:\s+|\s*,)\s*/g).join(' ');
}