Skip to content

Commit 3ef4268

Browse files
committed
Fix error in regular expression for images
1 parent 1ccf702 commit 3ef4268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check_load_and_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def main():
1414
notebook_paths = p.glob('**/*.ipynb')
1515
patterns = dict(
1616
loads=re.compile(r'%load ([^\s]+\.py)'),
17-
images=re.compile(r'\((images/[^\s]+(?:png|jpg|jpeg))\)')
17+
images=re.compile(r'\!\[.+\]\((.*images/[^\s]+(?:png|jpg|jpeg|svg))\)')
1818
)
1919
exceptions = defaultdict(list)
2020

0 commit comments

Comments
 (0)