Skip to content

Commit

Permalink
Merge pull request #1210 from seeM/fix-1194
Browse files Browse the repository at this point in the history
fix: incorrect regex pattern for setting `output-file`
  • Loading branch information
seeM authored Nov 8, 2022
2 parents 4916f48 + 448c7b5 commit 8021812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbdev/doclinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _iter_py_cells(p):
yield AttrDict(nb=nb, idx=int(idx), code=code, nb_path=nb_path, py_path=p.resolve())

# %% ../nbs/api/doclinks.ipynb 11
def _nbpath2html(p): return p.with_name(re.sub(r'\d+[a-zA-Z0-9]*_', '', p.name.lower())).with_suffix('.html')
def _nbpath2html(p): return p.with_name(re.sub(r'\d+[a-zA-Z0-9]+_', '', p.name.lower())).with_suffix('.html')

# %% ../nbs/api/doclinks.ipynb 13
def _get_modidx(py_path, code_root, nbs_path):
Expand Down
2 changes: 1 addition & 1 deletion nbs/api/doclinks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"outputs": [],
"source": [
"#|export\n",
"def _nbpath2html(p): return p.with_name(re.sub(r'\\d+[a-zA-Z0-9]*_', '', p.name.lower())).with_suffix('.html')"
"def _nbpath2html(p): return p.with_name(re.sub(r'\\d+[a-zA-Z0-9]+_', '', p.name.lower())).with_suffix('.html')"
]
},
{
Expand Down

0 comments on commit 8021812

Please sign in to comment.