django/code.djangoproject.com — pull request #5 by bmispelon (2013-04-15 20:14:47+00:00)
Title: Fix coredev name highlight

The highlighting of coredev's names relies on a regex that uses `\w`.

Unfortunately, javascript does not support unicode with regexp, so this fails if a user with a non-ascii name has commented.

Since we're accessing the match regardless, an error is raised when that happens, which stops any further processing.

You can see an example of this on that page: https://code.djangoproject.com/ticket/19763 (note how none of the coredevs are highlighted; you can also see the error in the js console).

The fix in this pull request is not very robust either. It will work on non-ascii usernames but it could yield incorrect results if a user's name contain whitespace.