Skip to content

Commit 4b36054

Browse files
committed
Support '.' in mentions
1 parent 500cd98 commit 4b36054

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/topcodereditor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444
success: function (data) {
4545
var result = [];
4646
$.each(data, function (i, item) {
47-
result.push({text: data[i].handle, displayText: data[i].handle, className: 'Username'});
47+
var text = data[i].handle;
48+
if(text.indexOf('.') > -1) {
49+
text = '"' + text + '"';
50+
}
51+
result.push({text: text, displayText: data[i].handle, className: 'Username'});
4852
});
4953
return accept({
5054
list: result,

0 commit comments

Comments
 (0)