diff --git a/src/api/export.ts b/src/api/export.ts index 0d6d471..e2f7f5d 100644 --- a/src/api/export.ts +++ b/src/api/export.ts @@ -187,6 +187,6 @@ async function _export({ } function get_href(attrs: string) { - const match = /href\s*=\s*(?:"(.+?)"|'(.+?)'|([^\s>]+))/.exec(attrs); + const match = /href\s*=\s*(?:"(.*?)"|'(.+?)'|([^\s>]+))/.exec(attrs); return match[1] || match[2] || match[3]; } \ No newline at end of file diff --git a/test/apps/export/src/routes/index.html b/test/apps/export/src/routes/index.html index 37f82e0..cdeb5a8 100644 --- a/test/apps/export/src/routes/index.html +++ b/test/apps/export/src/routes/index.html @@ -1,3 +1,4 @@

Great success!

-blog \ No newline at end of file +blog +empty anchor \ No newline at end of file