mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 14:25:14 +00:00
Fix polypoints RegExp. Close #303
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
export default function (polyPoints) {
|
export default function (polyPoints) {
|
||||||
return polyPoints.replace(/-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' ');
|
return polyPoints.replace(/[^e]-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' ');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user