Fix polypoints RegExp

This commit is contained in:
Horcrux
2017-04-04 11:59:59 +08:00
parent e3b2f4c71a
commit ea1a87887e
+1 -1
View File
@@ -1,4 +1,4 @@
export default function (polyPoints) {
return polyPoints.replace(/-/, ' -').split(/(?:\s+|\s*,)\s*/g).join(' ');
return polyPoints.replace(/-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' ');
}