BingoCardGenerator icon indicating copy to clipboard operation
BingoCardGenerator copied to clipboard

Remove extraneous commas

Open cherdt opened this issue 6 years ago • 2 comments

Commas are used as word/phrase separators. If someone includes an extraneous comma (",,") or a trailing comma ("item1,item2,item3,") then the board will have blank spaces.

We can search for and remove extra and/or trailing commas.

cherdt avatar May 30 '18 16:05 cherdt

This feature already exists! removeEmptyElements should take care of this. How are users managing to create cards with empty spaces?

Possibly they are including a space between commas or after a trailing comma. In which case, some people might want to do this intentionally. I'm not sure this should be fixed.

cherdt avatar Jun 02 '18 17:06 cherdt

Yes this was reported again recently, a user included a trailing comma plus a newline. I think we can safely remove commas that have only whitespace following.

cherdt avatar Aug 11 '18 23:08 cherdt