Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doradx committed Apr 12, 2023
1 parent a0f3f00 commit d3152d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notion-blog-action-tcyun",
"version": "0.1.12",
"version": "0.1.13",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class NotionFileHandler extends FileHandler.default {
let urls = markdownURLList.concat(imageTagURLList);

// front matter
let matchs = content.matchAll(/(.*):\s((https?:\/\/.*\.(?:png|jpg|jpeg|gif|svg|tif)))/gi);
let matchs = content.matchAll(/(.*):\s((https?:\/\/.*\.(?:png|jpg|jpeg|gif|svg|tif)).*)/gi);
for (const m of matchs) {
let src = m[2];
src = src.replace(/^'/, "").replace(/'$/, "");
Expand Down

0 comments on commit d3152d5

Please sign in to comment.