Skip to content
Permalink
Browse files

update regular expression for notebook description

  • Loading branch information...
sdpython committed Dec 29, 2016
1 parent e92484e commit 0162a55d68cad9e25324ebf69f9680f8c7b415b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pyquickhelper/ipythonhelper/notebook_runner.py
@@ -1037,7 +1037,7 @@ def split_header(s, get_header=True):
if second_cell['cell_type'] == 'markdown':
_, desc = split_header(second_cell['source'], False)

reg_link = "(\\[(.*)\\]\\(([^ ]*)\\))"
reg_link = "(\\[(.*?)\\]\\(([^ ]*)\\))"
reg = re.compile(reg_link)
new_desc = reg.sub("\\2", desc)
if "http://" in new_desc or "https://" in new_desc:

0 comments on commit 0162a55

Please sign in to comment.
You can’t perform that action at this time.