I had a bug in my code. Not even a bug. An edge case.
Not even my fault, actually. I made this project, to track the movies. It utilises TMDb API. In the API, the apostrophe symbol is just wrong. What should be a ’
is '
. And it breaks my toml config file. The whole website crashes upon rendering.
I had a disturbed sleep, I was worried over the script, and I woke up with the heavy head, still thinking how should I fix that.
Turned out, simply substituting '
for ’
solves the issue completely. And that’s just a couple of symbols with the help of sed, a program that exists for over 50 years.
sed "s/'/’/g"
Just wow. Needn’t to worry about that.