fix tooltip token regex for single-character names

closes #4808
This commit is contained in:
MinRK 2014-01-23 09:51:46 -08:00
parent 91706fc422
commit 848010e911

View File

@ -197,7 +197,7 @@ var IPython = (function (IPython) {
}
// easy access for julia monkey patching.
Tooltip.last_token_re = /[a-z_][0-9a-z._]+$/gi;
Tooltip.last_token_re = /[a-z_][0-9a-z._]*$/gi;
Tooltip.prototype.extract_oir_token = function(line){
// use internally just to make the request to the kernel