Remove hyphen, underscore delimiters

This commit is contained in:
missionfloyd 2023-04-21 13:44:31 -06:00 committed by GitHub
parent 27d02597c7
commit c1fdba5904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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