We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6ee62 commit 00e7f4dCopy full SHA for 00e7f4d
crawler/index.js
@@ -120,7 +120,7 @@ class Crawler {
120
}
121
122
async getImage(body) {
123
- const regex = /!\[[^\]]*\]\((.*?.png|.jpeg|.jpg|.webp|.svg|.gif|.tiff)\s*("(?:.*[^"])")?\s*\)|!\[[^\]]*\]\((.*?)\s*("(?:.*[^"])")?\s*\)/g;
+ const regex = /!\[[^\]]*\]\((.*?.png|.*?.jpeg|.*?.jpg|.*?.webp|.*?.svg|.*?.gif|.*?.tiff)\s*("(?:.*[^"])")?\s*\)|!\[[^\]]*\]\((.*?)\s*("(?:.*[^"])")?\s*\)/g;
124
125
body = body.replace(regex, (_, url) => {
126
if (!url) return;
0 commit comments