From a20c271bb1a6a1be22a2e00deb8134f15a6bf7a1 2014-09-02 19:09:52 From: Paul Ivanov Date: 2014-09-02 19:09:52 Subject: [PATCH] update regex --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index 070d688..374ac60 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -718,7 +718,7 @@ class IPCompleter(Completer): else: # true if txt is _not_ a _ name, false otherwise: no__name = (lambda txt: - re.match(r'.*\._.*?',txt[txt.rindex('.'):]) is None) + re.match(r'\._.*?',txt[txt.rindex('.'):]) is None) matches = filter(no__name, matches) except NameError: # catches .