Skip to content

Commit

Permalink
Remove end parenthesis from weight
Browse files Browse the repository at this point in the history
  • Loading branch information
missionfloyd committed Oct 1, 2023
1 parent 0eb5fde commit 56ef5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/edit-attention.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function keyupEditAttention(event) {
}

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

weight += isPlus ? delta : -delta;
Expand Down

0 comments on commit 56ef5e9

Please sign in to comment.