kopia lustrzana https://github.com/onthegomap/planetiler
Escape regex string (#627)
Escape the character once for the regex, and a second time for Java.pull/628/head
rodzic
a4ea44f182
commit
04239ff564
|
@ -74,7 +74,7 @@ public class PolyFileReader {
|
|||
inRing = false;
|
||||
} else {
|
||||
// we are in a ring and picking up new coordinates.
|
||||
String[] splitted = line.trim().split("\s+");
|
||||
String[] splitted = line.trim().split("\\s+");
|
||||
currentRing.addPoint(Double.parseDouble(splitted[0]), Double.parseDouble(splitted[1]));
|
||||
}
|
||||
} else {
|
||||
|
|
Ładowanie…
Reference in New Issue