Fix github mention regexp

While merging a pull request I haven't noticed that the first part of
regexp will always match a beginning of the line.
This commit is contained in:
Piotr Sarnacki 2013-12-11 14:44:03 +01:00
parent 86f660310f
commit a252e34771

View File

@ -84,7 +84,7 @@ require 'config/emoij'
_githubReferenceRegexp: new RegExp("([\\w-]+)?\\/?([\\w-]+)?(?:#|gh-)(\\d+)", 'g')
_githubUserRegexp: new RegExp("^|\\B@([\\w-]+)", 'g')
_githubUserRegexp: new RegExp("\\B@([\\w-]+)", 'g')
_githubUserLink: (reference, username) ->
"<a href=\"http://github.com/#{username}\">#{reference}</a>"