mycodemirror
Advanced tools
Comparing version 5.19.4 to 5.19.5
@@ -289,6 +289,5 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
var val = editor.getValue(); | ||
var len = cur.ch - search.length - 6; | ||
len < 0 && (len = 0); | ||
var frontKey = val.substr(len, 6).toUpperCase(); | ||
if (frontKey == ' FROM ' && cur.ch > 6 || cur.ch >=5 && frontKey.substr(0, 5) == 'FROM ' || frontKey == ' JOIN ' && cur.ch > 6 || cur.ch >= 5&& frontKey.substr(0, 5) == 'JOIN ') { | ||
var frontKey = val.slice(val.length - search.length - 6 ,val.length - search.length).toUpperCase(); | ||
var frontKey1 = val.slice(val.length - search.length - 5 ,val.length - search.length).toUpperCase(); | ||
if ( frontKey == ' FROM '|| (cur.ch - search.length ===5 )&&frontKey1 == 'FROM '|| frontKey == '\nFROM ' || frontKey == '\rFROM ' || frontKey == ' JOIN '|| (cur.ch - search.length ===5 )&& frontKey1 == 'JOIN '|| frontKey == '\rJOIN ' || frontKey == '\nJOIN ') { | ||
addMatches(result, search, table, function (w) { | ||
@@ -295,0 +294,0 @@ return w; |
{ | ||
"name": "mycodemirror", | ||
"version": "5.19.4", | ||
"version": "5.19.5", | ||
"main": "lib/codemirror.js", | ||
@@ -5,0 +5,0 @@ "description": "Full-featured in-browser code editor", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2204221
50656