allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] branch master updated: [#8299] Improve autocomplete regex for special characters
Date Tue, 02 Jul 2019 15:04:46 GMT
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


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

commit 31f04c8afd35c3f7f9511764a4f9d03709fa55b3
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