Update delimiters

This commit is contained in:
missionfloyd 2023-04-20 02:24:38 -06:00
parent ee172c0fc1
commit 7ef5551634
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function keyupEditAttention(event){
function selectCurrentWord(){
if (selectionStart !== selectionEnd) return false;
const delimiters = ".,\/#!$%\^&\*;:{}=\-_`~() ";
const delimiters = " .,\\/!?%^*;:{}=-_`~()\r\n\t";
// seek backward until to find beggining
while (!delimiters.includes(text[selectionStart - 1]) && selectionStart > 0) {