We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a94b06b commit cd1d575Copy full SHA for cd1d575
js/topcodereditor.js
@@ -34,8 +34,8 @@
34
setTimeout(function() {
35
var cursor = cm.getCursor(), line = cm.getLine(cursor.line);
36
var start = cursor.ch, end = cursor.ch
37
- while (start && /[\w\.]/.test(line.charAt(start - 1))) --start
38
- while (end < line.length && /[\w\.]/.test(line.charAt(end))) ++end
+ while (start && /[\w\.\+-]/.test(line.charAt(start - 1))) --start
+ while (end < line.length && /[\w\.\+-]/.test(line.charAt(end))) ++end
39
var word = line.slice(start, end).toLowerCase();
40
if(word.length > 1) {
41
$.ajax({
0 commit comments