Skip to content

Commit 8021812

Browse files
authored
Merge pull request #1210 from seeM/fix-1194
fix: incorrect regex pattern for setting `output-file`
2 parents 4916f48 + 448c7b5 commit 8021812

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)