Escape regex string (#627)

Escape the character once for the regex, and a second time for Java.
pull/628/head
Mikael Gueck 2023-07-16 14:18:19 +03:00 zatwierdzone przez GitHub
rodzic a4ea44f182
commit 04239ff564
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 {