allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shalithasura...@apache.org
Subject [allura] branch ss/8299 updated: [#8299] Improve autocomplete regex for special characters
Date Mon, 01 Jul 2019 17:30:10 GMT
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 <shalithasuranga@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);
 


Mime
View raw message