mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-07 16:39:57 +00:00
Remove hyphen, underscore delimiters
This commit is contained in:
@@ -46,7 +46,7 @@ function keyupEditAttention(event){
|
||||
|
||||
function selectCurrentWord(){
|
||||
if (selectionStart !== selectionEnd) return false;
|
||||
const delimiters = " .,\\/!?%^*;:{}=-_`~()\r\n\t";
|
||||
const delimiters = " .,\\/!?%^*;:{}=`~()\r\n\t";
|
||||
|
||||
// seek backward until to find beggining
|
||||
while (!delimiters.includes(text[selectionStart - 1]) && selectionStart > 0) {
|
||||
|
||||
Reference in New Issue
Block a user