mapbox/wellknown

Parser does not parse wkt's with whitespace after first '('

Opened this issue ยท 4 comments

Hey,
I have a service which gives me wkt's with some whitespaces (Do not ask why..) .
After debugging the parse method, found that white() does not match the use case when there is a whitespace after the first '(' character.
Example:
LINESTRING ( 30 10, 10 30, 40 40)
It matches first two whitespaces, not matches the whitespace after '('.
Checked for other shapes as well.

I spent almost an hour debugging my code until I found this issue.

is this repository still maintained?

@tmcw do you still deal with that library?

tmcw commented

No, I don't work at Mapbox anymore or have commit rights to this repo.

I understand. I will try to apply a correction for this. thanks! ๐Ÿ˜„