Skip to content

Commit

Permalink
limit to max 8 lb
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Oct 1, 2023
1 parent 82777e4 commit 0a55047
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6160,6 +6160,7 @@
let textarea = document.getElementById("chatopponent");
textarea.value = replaceAll(textarea.value,"||$||","\n");
let numberOfLineBreaks = (textarea.value.match(/\n/g) || []).length;
numberOfLineBreaks = numberOfLineBreaks>8?8:numberOfLineBreaks;
textarea.rows = numberOfLineBreaks+1;
}
function handle_bot_name_onchange()
Expand All @@ -6169,6 +6170,7 @@
textarea.value = textarea.value.replace(/[\r\n]+/g, '\n');
textarea.value = textarea.value.trim();
let numberOfLineBreaks = (textarea.value.match(/\n/g) || []).length;
numberOfLineBreaks = numberOfLineBreaks>8?8:numberOfLineBreaks;
textarea.rows = numberOfLineBreaks+1;
}

Expand Down

0 comments on commit 0a55047

Please sign in to comment.