From e264b9b48ba57a92ceae2b630939d77c635e5529 2012-05-31 20:33:34 From: Brian Granger <ellisonbg@gmail.com> Date: 2012-05-31 20:33:34 Subject: [PATCH] Make : invalid in filenames in the Notebook JS code. --- diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 181a13f..cf3d8f8 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -28,7 +28,7 @@ var IPython = (function (IPython) { this.control_key_active = false; this.notebook_id = null; this.notebook_name = null; - this.notebook_name_blacklist_re = /[\/\\]/; + this.notebook_name_blacklist_re = /[\/\\:]/; this.nbformat = 3 // Increment this when changing the nbformat this.style(); this.create_elements(); diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 2ffaf31..90571ec 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -83,7 +83,7 @@ var IPython = (function (IPython) { $(this).find('h3').html( "Invalid notebook name. Notebook names must "+ "have 1 or more characters and can contain any characters " + - "except / and \\. Please enter a new notebook name:" + "except :/\\. Please enter a new notebook name:" ); } else { IPython.notebook.set_notebook_name(new_name);