From a252e3477144aedd805eb145ec7f87d8db49c51f Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 11 Dec 2013 14:44:03 +0100 Subject: [PATCH] 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. --- assets/scripts/app/helpers/helpers.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/app/helpers/helpers.coffee b/assets/scripts/app/helpers/helpers.coffee index ea892a81..5d6d4828 100644 --- a/assets/scripts/app/helpers/helpers.coffee +++ b/assets/scripts/app/helpers/helpers.coffee @@ -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) -> "#{reference}"