I was wondering if anyone has already attempted to make better convert_smilies code before I dive into it (in formatting.php for v2.1) WP's current code is rather weak but at least it checks for tags.
There is a wide variance in how people try to pad spaces before and after a smiley, especially in the "more smilies" package.
What annoys me is if someone tries to leave a smilie at the start or end of the comment without whitespace it will fail. It's just not natural human instinct to put a space before (or after) if not "needed".
With regex it's easy to do compares like [$|\s] but I have to study the function first to see if that's acceptable.
Some programs like Vbulletin seem to do smilies much better, so before I waste alot of time duplicating someone's effort, is there anything else already out there?
Thanks for any feedback!