r/badcode • • May 04 '23

typescript Found this gem inside legacy code today

Post image
887 Upvotes

69 comments sorted by

View all comments

Show parent comment

4

u/thekwoka May 05 '23

easier to do a regex replace

encodeToUtf8\(([^\)])\)

$1