mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
Remove hyphen, underscore delimiters
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user