Thanks for the quick tip Paul, that seems to address the problem we originally hacked it for, and BP profile links now seem better without the hack.
However the @mentions still don’t work for any names with a period in them. They are fine for @admin (the only username without a period).
I saw somewhere else that punctuation immediately following an @name messes it up – sounds like it could be related to this problem. BP may need some better regexes if it’s going to support periods in @usernames?
(Wish we didn’t have the stupid periods, but that’s what the Windows guys have left us with!)