Skip to content

Commit bb3bdb0

Browse files
authored
Merge pull request #1453 from Isaac-Flath/RegexSyntaxWarning
Regex Syntax Warning Fix
2 parents 3e8f6ae + 356ec11 commit bb3bdb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/quarto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _recursive_parser(
8989
set_index: bool = True): # If `True`, `index` file will be set to href.
9090
for name, val in dir_dict.items():
9191
if type(val) is str:
92-
if re.search('index\..*', re.sub(r'^\d+_', '', val)) and set_index and section:
92+
if re.search(r'index\..*', re.sub(r'^\d+_', '', val)) and set_index and section:
9393
section.update({'href': str(dirpath/val)})
9494
else:
9595
contents.append(str(dirpath/val))

nbs/api/14_quarto.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
" set_index: bool = True): # If `True`, `index` file will be set to href.\n",
187187
" for name, val in dir_dict.items():\n",
188188
" if type(val) is str:\n",
189-
" if re.search('index\\..*', re.sub(r'^\\d+_', '', val)) and set_index and section:\n",
189+
" if re.search(r'index\\..*', re.sub(r'^\\d+_', '', val)) and set_index and section:\n",
190190
" section.update({'href': str(dirpath/val)})\n",
191191
" else:\n",
192192
" contents.append(str(dirpath/val))\n",

0 commit comments

Comments
 (0)