File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ export default class CodeEditor extends React.Component {
202
202
}
203
203
cm . execCommand ( 'goLineEnd' )
204
204
} else if (
205
- ! charBeforeCursor . match ( / \t | \s | \r | \n / ) &&
205
+ ! charBeforeCursor . match ( / \t | \s | \r | \n | \$ / ) &&
206
206
cursor . ch > 1
207
207
) {
208
208
// text expansion on tab key if the char before is alphabet
@@ -489,7 +489,7 @@ export default class CodeEditor extends React.Component {
489
489
getWordBeforeCursor ( line , lineNumber , cursorPosition ) {
490
490
let wordBeforeCursor = ''
491
491
const originCursorPosition = cursorPosition
492
- const emptyChars = / \t | \s | \r | \n /
492
+ const emptyChars = / \t | \s | \r | \n | \$ /
493
493
494
494
// to prevent the word is long that will crash the whole app
495
495
// the safeStop is there to stop user to expand words that longer than 20 chars
You can’t perform that action at this time.
0 commit comments