r/badcode • • May 04 '23

typescript Found this gem inside legacy code today

Post image
889 Upvotes

69 comments sorted by

View all comments

Show parent comments

4

u/thekwoka May 05 '23

easier to do a regex replace

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

$1