Skip to content

Commit 0e57b43

Browse files
authored
Merge pull request #15 from topcoder-platform/issues-433
Issues-433: wrap non-word chars in mentions
2 parents 3b5c1bb + cc69188 commit 0e57b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/topcodereditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
var result = [];
4747
$.each(data, function (i, item) {
4848
var text = data[i].handle;
49-
if(text.indexOf('.') > -1) {
49+
if(/[\W]/.test(text) > -1) {
5050
text = '"' + text + '"';
5151
}
5252
result.push({text: text, displayText: data[i].handle, className: 'Username'});

0 commit comments

Comments
 (0)