generative icon indicating copy to clipboard operation
generative copied to clipboard

wkio: allow trailing commas

Open Notgnoshi opened this issue 4 years ago • 1 comments

LINESTRING(-93.579699278759 42.012212046647, -93.579699278759 42.012990414418, -93.578910704098 42.012990414418, -93.578910704098 42.012212046647, )
LINESTRING(-93.579619455495 42.012507272707, -93.652889371462 42.012507272707, )
LINESTRING(-93.652889371462 42.012315183723, -93.616254413478 42.012315183723, -93.579619455495 42.012315183723, )

Notgnoshi avatar Dec 01 '20 17:12 Notgnoshi

I think re.sub(r',\s*)', ')') or equivalent will be sufficient, as long as it doesn't tank performance. Otherwise, filter through sed as necessary.

Notgnoshi avatar Jan 16 '21 19:01 Notgnoshi