From 603b7d95980588f38b42bc2d018c8d85cb66a61a Mon Sep 17 00:00:00 2001 From: MinRK Date: Sat, 23 Jun 2012 12:21:40 -0700 Subject: [PATCH] relax profile regex in notebook Almost any text is a valid profile name, and the previous code only included ascii alphanumeric strings. closes #2011 --- IPython/frontend/html/notebook/notebookapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index 25ca0b4f0..c957c7da6 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -75,7 +75,7 @@ from IPython.utils import py3compat _kernel_id_regex = r"(?P\w+-\w+-\w+-\w+-\w+)" _kernel_action_regex = r"(?Prestart|interrupt)" _notebook_id_regex = r"(?P\w+-\w+-\w+-\w+-\w+)" -_profile_regex = r"(?P[a-zA-Z0-9]+)" +_profile_regex = r"(?P[^\/]+)" # there is almost no text that is invalid _cluster_action_regex = r"(?Pstart|stop)"