Closed dontlaugh closed 2 years ago
A screenshot of the encoded summary and task id
I think we should run the task name through a whitelist filter and drop any characters not on the list. Also, convert spaces to dashes, and normalise to lowercase. Numbers and a-z should bring enough information over.
@naggie Ready for review!
Thanks @dontlaugh. Nitpicking --- but if we filter characters that aren't in the whitelist we don't end up with repeated dashes; would you mind changing it so we don't get repeated dashes please?
@naggie Fixed, I think. I've updated the test cases. Take a look at those to see the current behavior.
Thanks @dontlaugh !
Introduce a new utility function (and unit test) for generated truncated filenames from task ID and summary.
Go strings are UTF-8, and there may be pathological inputs that we need to sanitize. Add these to the unit test and handle them as we find them.
Fixes #117