File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -409,18 +409,18 @@ class Editor extends React.Component<EditorProps, EditorState> {
409
409
} ;
410
410
411
411
// Enter key, check previous line
412
- const isSymbol = lineInfo . curLine . match ( / ^ ( \s ? ) ( [ - * ] ) / ) ;
412
+ const isSymbol = lineInfo . curLine . match ( / ^ ( \s * ? ) \* / ) ;
413
413
if ( isSymbol ) {
414
- if ( / ^ ( \s ? ) ( [ - * ] ) $ / . test ( lineInfo . curLine ) ) {
414
+ if ( / ^ ( \s * ? ) \\ * $ / . test ( lineInfo . curLine ) ) {
415
415
emptyCurrentLine ( ) ;
416
416
return ;
417
417
}
418
418
addSymbol ( isSymbol [ 0 ] ) ;
419
419
return ;
420
420
}
421
- const isOrderList = lineInfo . curLine . match ( / ^ ( \s ? ) ( \d + ) \. / ) ;
421
+ const isOrderList = lineInfo . curLine . match ( / ^ ( \s * ?) ( \d + ) \. / ) ;
422
422
if ( isOrderList ) {
423
- if ( / ^ ( \s ? ) ( \d + ) \. $ / . test ( lineInfo . curLine ) ) {
423
+ if ( / ^ ( \s * ?) ( \d + ) \. $ / . test ( lineInfo . curLine ) ) {
424
424
emptyCurrentLine ( ) ;
425
425
return ;
426
426
}
You can’t perform that action at this time.
0 commit comments