I’m trying to get around some stylecheck issues and would like to add a fullstop ‘.’ to the end of every line which has a single line comment ( contains “//” ).
I would have thought there is a way to do this using regular expressions.
Any help would be much appreciated
Thanks
The easy way:
The elegant way (only add a dot at the end if there isn’t one already:
Explanation: