From 2b6643e2c09b5dff9d45f0cb51f065111a816729 2012-05-06 08:42:04 From: Bussonnier Matthias Date: 2012-05-06 08:42:04 Subject: [PATCH] Merge pull request #1698 from Carreau/fixes-1696 fix tooltip on token with number fix #1696 --- diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 26088b5..94eace9 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -1141,7 +1141,7 @@ var IPython = (function (IPython) { // remove everythin after last open bracket endBracket = /\([^\(]*$/g; func = func.replace(endBracket,""); - var re = /[a-zA-Z._]+$/g; + var re = /[a-z_][0-9a-z._]+$/gi; // casse insensitive var msg_id = this.kernel.object_info_request(re.exec(func)); if(typeof(msg_id)!='undefined'){ this.msg_cell_map[msg_id] = cell.cell_id;