Skip to content

Commit 448c7b5

Browse files
committed
fix: incorrect regex pattern for setting output-file
fixes #1194
1 parent 4916f48 commit 448c7b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/doclinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _iter_py_cells(p):
5555
yield AttrDict(nb=nb, idx=int(idx), code=code, nb_path=nb_path, py_path=p.resolve())
5656

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

6060
# %% ../nbs/api/doclinks.ipynb 13
6161
def _get_modidx(py_path, code_root, nbs_path):

nbs/api/doclinks.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"outputs": [],
163163
"source": [
164164
"#|export\n",
165-
"def _nbpath2html(p): return p.with_name(re.sub(r'\\d+[a-zA-Z0-9]*_', '', p.name.lower())).with_suffix('.html')"
165+
"def _nbpath2html(p): return p.with_name(re.sub(r'\\d+[a-zA-Z0-9]+_', '', p.name.lower())).with_suffix('.html')"
166166
]
167167
},
168168
{

0 commit comments

Comments
 (0)