You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by sh...@apache.org on 2019/07/01 17:30:10 UTC

[allura] branch ss/8299 updated: [#8299] Improve autocomplete regex for special characters

This is an automated email from the ASF dual-hosted git repository.

shalithasuranga pushed a commit to branch ss/8299
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/ss/8299 by this push:
     new 9bb760e  [#8299] Improve autocomplete regex for special characters
9bb760e is described below

commit 9bb760e59216e65ca97264e5b83a23c3e944f793
Author: Shalitha Suranga <sh...@gmail.com>
AuthorDate: Mon Jul 1 22:59:39 2019 +0530

    [#8299] Improve autocomplete regex for special characters
---
 Allura/allura/lib/widgets/resources/js/usermentions-helper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/lib/widgets/resources/js/usermentions-helper.js b/Allura/allura/lib/widgets/resources/js/usermentions-helper.js
index f53ee1b..d1d0ea8 100644
--- a/Allura/allura/lib/widgets/resources/js/usermentions-helper.js
+++ b/Allura/allura/lib/widgets/resources/js/usermentions-helper.js
@@ -31,7 +31,7 @@ var getProjectUsers = function(users_url) {
 }
 
 CodeMirror.registerHelper('hint', 'alluraUserMentions', function (editor) {
-    var word = /[\w-]+/;
+    var word = /[^@]+/;
     var cur = editor.getCursor(), curLine = editor.getLine(cur.line);
     var tokenType = editor.getTokenTypeAt(cur);