Who'd have thought.
Random code you find on the internet has bugs.
Moral: Tests all the things.
@alienghic you mean I shouldn't blindly trust the top answer on a stack overflow post from 2011???
@alienghic you mean I shouldn't blindly trust the top answer on a stack overflow post from 2011???