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:
parent
86f660310f
commit
a252e34771
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue
Block a user