Copy&paste of formatted text using Chrome (at least, maybe others as well) leads to strange effects, like for example:
[font=proxima-nova, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif]credits_intro[/font]
I was thinking to add a new entry to $mistake_fixes array in preparsecode that looks like:
'~\[font=([^\[])+?,[^\[]*]~' => '[font=$1]',
Being a regexp and being in a pretty nasty position I'd like to have some feedback on that.
If I'm not mistaken, it should grab anything up to the first comma (if any) and use it as font.
Do you see any problem with it?