ya know this might not be the prettiest code i've ever written
but god damn every time i use this fuckin function it makes me dumbass happy because it just fuckin works after tons of patching little issues with it until it's seemingly perfect now
Oh also this was originally written for thingworx where I don't have the luxury of such things as "external libraries"
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!