Fix polypoints RegExp. Close #303

This commit is contained in:
陈阳
2017-05-02 11:56:03 +08:00
parent b2bb3c31b4
commit 9a07c4251d

View File

@@ -1,4 +1,4 @@
export default function (polyPoints) {
return polyPoints.replace(/-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' ');
return polyPoints.replace(/[^e]-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' ');
}