We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9affbbd commit 094c2c7Copy full SHA for 094c2c7
index.js
@@ -258,8 +258,8 @@ function wordSelectionStart(text: string, i: number): number {
258
259
function wordSelectionEnd(text: string, i: number, multiline: boolean): number {
260
let index = i
261
- const breakPoint = multiline ? /\n/ : /\s/
262
- while (text[index] && !text[index].match(breakPoint)) {
+ const breakpoint = multiline ? /\n/ : /\s/
+ while (text[index] && !text[index].match(breakpoint)) {
263
index++
264
}
265
return index
0 commit comments