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 @@ -1418,7 +1418,7 @@ window.CodeMirror = (function() {
14181418 var startChar = line . charAt ( start ) ;
14191419 var check = isWordChar ( startChar ) ? isWordChar :
14201420 / \s / . test ( startChar ) ? function ( ch ) { return / \s / . test ( ch ) ; } :
1421- function ( ch ) { return ! / \s / . test ( ch ) && ! isWordChar ( ch ) ; } ;
1421+ function ( ch ) { return ! / \s / . test ( ch ) && isWordChar ( ch ) ; } ;
14221422 while ( start > 0 && check ( line . charAt ( start - 1 ) ) ) -- start ;
14231423 while ( end < line . length && check ( line . charAt ( end ) ) ) ++ end ;
14241424 }
@@ -3101,7 +3101,7 @@ window.CodeMirror = (function() {
31013101 return - 1 ;
31023102 }
31033103 function isWordChar ( ch ) {
3104- return / \w / . test ( ch ) || ch . toUpperCase ( ) != ch . toLowerCase ( ) ;
3104+ return / \w / . test ( ch ) || ch . toUpperCase ( ) != ch . toLowerCase ( ) || / [ \u4E00 - \u9FA5 ] / . test ( ch ) ;
31053105 }
31063106
31073107 // See if "".split is the broken IE version, if so, provide an
You can’t perform that action at this time.
0 commit comments