Skip to content

Commit 56ef5e9

Browse files
committed
Remove end parenthesis from weight
1 parent 0eb5fde commit 56ef5e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/edit-attention.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function keyupEditAttention(event) {
8686
}
8787

8888
var end = text.slice(selectionEnd + 1).indexOf(closeCharacter) + 1;
89-
var weight = parseFloat(text.slice(selectionEnd + 1, selectionEnd + 1 + end));
89+
var weight = parseFloat(text.slice(selectionEnd + 1, selectionEnd + end));
9090
if (isNaN(weight)) return;
9191

9292
weight += isPlus ? delta : -delta;

0 commit comments

Comments
 (0)