We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb5fde commit 56ef5e9Copy full SHA for 56ef5e9
javascript/edit-attention.js
@@ -86,7 +86,7 @@ function keyupEditAttention(event) {
86
}
87
88
var end = text.slice(selectionEnd + 1).indexOf(closeCharacter) + 1;
89
- var weight = parseFloat(text.slice(selectionEnd + 1, selectionEnd + 1 + end));
+ var weight = parseFloat(text.slice(selectionEnd + 1, selectionEnd + end));
90
if (isNaN(weight)) return;
91
92
weight += isPlus ? delta : -delta;
0 commit comments