Skip to content

Commit

Permalink
Merge pull request ipython#2014 from minrk/profile_re
Browse files Browse the repository at this point in the history
Relax profile regex in notebook.  Almost any text is a valid profile name, and the previous code only included ascii alphanumeric strings.

closes ipython#2011.
  • Loading branch information
fperez committed Jun 23, 2012
2 parents 086258d + 4c8a662 commit 7415e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/frontend/html/notebook/notebookapp.py
Expand Up @@ -75,7 +75,7 @@
_kernel_id_regex = r"(?P<kernel_id>\w+-\w+-\w+-\w+-\w+)"
_kernel_action_regex = r"(?P<action>restart|interrupt)"
_notebook_id_regex = r"(?P<notebook_id>\w+-\w+-\w+-\w+-\w+)"
_profile_regex = r"(?P<profile>[a-zA-Z0-9]+)"
_profile_regex = r"(?P<profile>[^\/]+)" # there is almost no text that is invalid
_cluster_action_regex = r"(?P<action>start|stop)"


Expand Down

0 comments on commit 7415e59

Please sign in to comment.