mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
notebook: code Readability. Add dismissing symbols
* As minrk suggested, changes list of char to string.split() * add also a few dismissing symbold like `,` `=` and `*` for the completer
This commit is contained in:
parent
44c959f88b
commit
855fd6f923
@ -253,7 +253,7 @@ var IPython = (function (IPython) {
|
||||
},
|
||||
dismissAndAppend : function (code)
|
||||
{
|
||||
chararr = ['(',')','[',']','+','-','/','\\','.',' '];
|
||||
chararr = '()[]+-/\\. ,=*'.split("");
|
||||
codearr = chararr.map(function(x){return x.charCodeAt(0)});
|
||||
return jQuery.inArray(code, codearr) != -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user