diff --git a/IPython/frontend/html/notebook/static/js/completer.js b/IPython/frontend/html/notebook/static/js/completer.js
index f43d58c..a51c8b0 100644
--- a/IPython/frontend/html/notebook/static/js/completer.js
+++ b/IPython/frontend/html/notebook/static/js/completer.js
@@ -8,18 +8,15 @@ var IPython = (function (IPython) {
// easyier key mapping
var key = IPython.utils.keycodes;
- // what is the common start of all completions
function _existing_completion(item, completion_array){
- if(item.substr(0,1) == '.') {
- for( var c in completion_array ) {
- if(completion_array[c].substr(-item.length) == item)
- { return true; }
- }
- return false;
- }
- else {return completion_array.indexOf(item) != -1}
+ for( var c in completion_array ) {
+ if(completion_array[c].substr(-item.length) == item)
+ { return true; }
+ }
+ return false;
}
+ // what is the common start of all completions
function shared_start(B) {
if (B.length == 1) {
return B[0];
@@ -129,7 +126,7 @@ var IPython = (function (IPython) {
//remove results from context completion
//that are already in kernel completion
for(var elm in results) {
- if(_existing_completion(results[elm]['str'],matches) == false)
+ if(_existing_completion(results[elm]['str'], matches) == false)
{ filterd_results.push(results[elm]); }
}