mirror of
https://github.com/csharpee/Map-Projections.git
synced 2025-12-08 00:00:14 -05:00
I hate Adobe Illustrator
apparently in addition to dropping the delimiter before negative numbers, because you can infer from the hyphen that it's the start of a new number, they also drop it before numbers that start with a decimal point iff the previus number has a decimal point in it. this is awful. why did they do this. it can't possibly have been worth it. whatever, I account for it now.
This commit is contained in:
parent
5143922038
commit
7d9136b1bd
@ -34,6 +34,8 @@ public class Path {
|
||||
i ++;
|
||||
String argString = d.substring(start, i);
|
||||
argString = argString.replaceAll("([0-9.])-", "$1,-"); //this is necessary because some Adobe products leave out delimiters between negative numbers
|
||||
argString = argString.replaceAll("\\.([0-9]+)\\.", ".$1,."); //this is necessary because some Adobe products also leave out delimiters between a number containing a decimal point and a number starting with a decimal point
|
||||
argString = argString.replaceAll("\\.([0-9]+)\\.", ".$1,."); //you have to call it twice in case there are multiple point-separated numbers in a row
|
||||
|
||||
// separate the arguments
|
||||
String[] argStrings;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user