Migrate editAttention (#34)

* Rename

* nit
This commit is contained in:
Chenlei Hu
2024-06-18 14:34:02 -04:00
committed by GitHub
parent 40754f198a
commit a624d411cb

View File

@@ -91,11 +91,11 @@ app.registerExtension({
} else {
// Select the current word, find the start and end of the word
const delimiters = " .,\\/!?%^*;:{}=-_`~()\r\n\t";
while (!delimiters.includes(inputField.value[start - 1]) && start > 0) {
start--;
}
while (!delimiters.includes(inputField.value[end]) && end < inputField.value.length) {
end++;
}